aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/muteNewGuild.ts
blob: 8b9a33d55ed00f63e129ed64a3d554adc51079be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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})"
            }
        }
    ],
})