Skip to content

Instantly share code, notes, and snippets.

@sneksnake
Last active May 20, 2024 16:44
Show Gist options
  • Save sneksnake/08166875e98741e881e4614a69938870 to your computer and use it in GitHub Desktop.
Save sneksnake/08166875e98741e881e4614a69938870 to your computer and use it in GitHub Desktop.
[Vencord] Use fakevoiceoptions command to toggle fake mute & deafen
import definePlugin, { OptionType } from "@utils/types";
export default definePlugin({
name: "Fake Voice Options",
description: "fake mute & deafen",
authors: [{
name: "SaucyDuck",
id: 1004904120056029256n
}],
patches: [
{
find: "e.setSelfMute(n)",
replacement: [{
// prevent client-side mute
match: /e\.setSelfMute\(n\),/g,
replace: 'e.setSelfMute(Vencord.Settings.plugins["Fake Voice Options"].fakeMute?false:n),'
},
{
// prevent client-side deafen
match: /e\.setSelfDeaf\(t\.deaf\)/g,
replace: 'e.setSelfDeaf(Vencord.Settings.plugins["Fake Voice Options"].fakeDeafen?false:t.deaf)'
}]
},
],
options: {
fakeMute: {
description: "Make everyone believe you're muted (you can still speak)",
type: OptionType.BOOLEAN,
default: false,
},
fakeDeafen: {
description: "Make everyone believe you're deafened (you can still hear)",
type: OptionType.BOOLEAN,
default: false,
},
},
});
@SethDusek
Copy link

does this still work? I downloaded the plugin but it doesn't show me as deafened to other users

@Wikinger8
Copy link

does this still work? I downloaded the plugin but it doesn't show me as deafened to other users

https://www.youtube.com/watch?v=WR7AF1_pmd0

This works

@Troopica1
Copy link

does this still work? I downloaded the plugin but it doesn't show me as deafened to other users

https://www.youtube.com/watch?v=WR7AF1_pmd0

This works

Yeah i was the one who told that guy to make a vid about it - not to flex but yk... 🗣️🔥🧏‍♂️🥩🥩😈

@Wikinger8
Copy link

does this still work? I downloaded the plugin but it doesn't show me as deafened to other users

https://www.youtube.com/watch?v=WR7AF1_pmd0
This works

Yeah i was the one who told that guy to make a vid about it - not to flex but yk... 🗣️🔥🧏‍♂️🥩🥩😈

Then tell him that the button is too big

@omarelghonemy
Copy link

i build this code and didnt run why?

@BasedDrainer
Copy link

stopped working, any fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment