* 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>
33 lines
1 KiB
TypeScript
33 lines
1 KiB
TypeScript
/*
|
|
* 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}"
|
|
},
|
|
]
|
|
}
|
|
],
|
|
});
|