From be17e370897db3aa4aaceeff726bca26bb2d03c6 Mon Sep 17 00:00:00 2001 From: oma <57739965+Eazvy@users.noreply.github.com> Date: Mon, 23 Feb 2026 11:13:31 -0500 Subject: [PATCH] NoPushToTalk (#831) * NoPushToTalk Bypasses the push-to-talk requirement for voice activity in channels that enforce it. * fix * fix whatever struct you did --------- Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com> --- src/equicordplugins/noPushToTalk/index.ts | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/equicordplugins/noPushToTalk/index.ts 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}" + }, + ] + } + ], +});