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>
This commit is contained in:
parent
4cdb5f4a7b
commit
be17e37089
1 changed files with 33 additions and 0 deletions
33
src/equicordplugins/noPushToTalk/index.ts
Normal file
33
src/equicordplugins/noPushToTalk/index.ts
Normal file
|
|
@ -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}"
|
||||
},
|
||||
]
|
||||
}
|
||||
],
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue