Skip to content

Instantly share code, notes, and snippets.

@sneksnake
Last active April 25, 2026 20:37
Show Gist options
  • Select an option

  • Save sneksnake/08166875e98741e881e4614a69938870 to your computer and use it in GitHub Desktop.

Select an option

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,
},
},
});
@LeonMaximal1
Copy link
Copy Markdown

where put this code ? idk sorry for this questions
Maybe have one tutorial ?

@sethdusek
Copy link
Copy Markdown

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

@Wikinger8
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

i build this code and didnt run why?

@RaimbowSix
Copy link
Copy Markdown

not working why>????

brain not working wwhyy ??

@j0k34sec
Copy link
Copy Markdown

everything working but cant see the toggle button to enable
image
image
image
OS Arch

@Edgardbu
Copy link
Copy Markdown

Edgardbu commented Mar 10, 2026

 * 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

@kxtfn
Copy link
Copy Markdown

kxtfn commented Mar 15, 2026

 * 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

@Squeeze5
Copy link
Copy Markdown

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