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

@ -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");'
}
}
]
});