feat(plugin): DisableCameras by Joona

This commit is contained in:
thororen1234 2024-09-13 13:16:52 -04:00
parent 569e1734d7
commit 6e2262a5d3
2 changed files with 24 additions and 0 deletions

View file

@ -37,6 +37,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
- CutePats by thororen - CutePats by thororen
- DeadMembers by Kyuuhachi - DeadMembers by Kyuuhachi
- Demonstration by Samwich - Demonstration by Samwich
- DisableCameras by Joona
- DNDWhilePlaying by thororen - DNDWhilePlaying by thororen
- DoNotLeak by Perny - DoNotLeak by Perny
- DontFilterMe by Samwich - DontFilterMe by Samwich

View file

@ -0,0 +1,23 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
export default definePlugin({
name: "DisableCameras",
description: "Disables cameras in a call by default",
authors: [Devs.Joona],
patches: [
{
find: 'logger.error("Connect called',
replacement: {
match: /case 12:this.emit\("video",(\i\.user_id).+?;/,
replace: '$&findByProps("setDisableLocalVideo").setDisableLocalVideo($1, "DISABLED");'
}
}
]
});