diff --git a/src/equicordplugins/noPushToTalk/index.ts b/src/equicordplugins/noPushToTalk/index.ts new file mode 100644 index 000000000..ff5ee8682 --- /dev/null +++ b/src/equicordplugins/noPushToTalk/index.ts @@ -0,0 +1,33 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2026 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { EquicordDevs } from "@utils/constants"; +import definePlugin from "@utils/types"; + +export default definePlugin({ + name: "NoPushToTalk", + description: "Bypasses the push-to-talk requirement for voice activity in channels that enforce it.", + authors: [EquicordDevs.omaw], + patches: [ + { + find: "PermissionVADStore", + replacement: [ + { + match: /\|\|\i\.\i\.can\(\i\.\i\.USE_VAD,\i\)\|\|/, + replace: "||true||" + }, + { + match: /shouldShowWarning\(\)\{return!\i\}/, + replace: "shouldShowWarning(){return false}" + }, + { + match: /canUseVoiceActivity\(\)\{return \i\}/, + replace: "canUseVoiceActivity(){return true}" + }, + ] + } + ], +});