Last active
April 25, 2026 20:37
-
-
Save sneksnake/08166875e98741e881e4614a69938870 to your computer and use it in GitHub Desktop.
[Vencord] Use fakevoiceoptions command to toggle fake mute & deafen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, | |
| }, | |
| }, | |
| }); |
i build this code and didnt run why?
not working why>????
brain not working wwhyy ??
* Vencord, a Discord client mod
* Copyright (c) 2026 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { definePluginSettings } from "@api/Settings";
import definePlugin, { OptionType } from "@utils/types";
export const settings = definePluginSettings({
fakeMute: {
type: OptionType.BOOLEAN,
description: "Show yourself as muted while still being able to speak locally.",
default: false
},
fakeDeafen: {
type: OptionType.BOOLEAN,
description: "Show yourself as deafened while still being able to hear locally.",
default: false
}
});
export default definePlugin({
name: "FakeVoiceOptions",
description: "Fake mute and deafen locally.",
authors: [
{
name: "us.er",
id: 915238003868323891n
}
],
settings,
patches: [
{
find: "setSelfMute",
replacement: [
{
match: /e\.setSelfMute\(n\)/g,
replace: "e.setSelfMute($self.settings.store.fakeMute ? false : n)"
},
{
match: /e\.setSelfDeaf\(t\.deaf\)/g,
replace: "e.setSelfDeaf($self.settings.store.fakeDeafen ? false : t.deaf)"
}
]
}
]
});```
call this index.ts
* Vencord, a Discord client mod * Copyright (c) 2026 Vendicated and contributors * SPDX-License-Identifier: GPL-3.0-or-later */ import { definePluginSettings } from "@api/Settings"; import definePlugin, { OptionType } from "@utils/types"; export const settings = definePluginSettings({ fakeMute: { type: OptionType.BOOLEAN, description: "Show yourself as muted while still being able to speak locally.", default: false }, fakeDeafen: { type: OptionType.BOOLEAN, description: "Show yourself as deafened while still being able to hear locally.", default: false } }); export default definePlugin({ name: "FakeVoiceOptions", description: "Fake mute and deafen locally.", authors: [ { name: "us.er", id: 915238003868323891n } ], settings, patches: [ { find: "setSelfMute", replacement: [ { match: /e\.setSelfMute\(n\)/g, replace: "e.setSelfMute($self.settings.store.fakeMute ? false : n)" }, { match: /e\.setSelfDeaf\(t\.deaf\)/g, replace: "e.setSelfDeaf($self.settings.store.fakeDeafen ? false : t.deaf)" } ] } ] });``` call this index.ts
how to install it
Where do I put this code? I don't have a plugins folder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Then tell him that the button is too big