mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-25 08:46:25 +00:00
e1027e06c1
* fix(plugins): Fixed BANger That was easy. * add(Devs): Added Myself to Devs * Update banger.ts Co-authored-by: Ven <vendicated@riseup.net>
17 lines
580 B
TypeScript
17 lines
580 B
TypeScript
import definePlugin from "../utils/types";
|
|
import {Devs} from "../utils/constants";
|
|
|
|
export default definePlugin({
|
|
name: "MuteNewGuild",
|
|
description: "Mutes newly joined guilds",
|
|
authors: [Devs.Glitch],
|
|
patches: [
|
|
{
|
|
find: ",acceptInvite:function",
|
|
replacement: {
|
|
match: /(\w=null!==[^;]+)/,
|
|
replace: "$1;Vencord.Webpack.findByProps('updateGuildNotificationSettings').updateGuildNotificationSettings($1,{'muted':true,'suppress_everyone':true,'suppress_roles':true})"
|
|
}
|
|
}
|
|
],
|
|
})
|