aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/muteNewGuild.ts
blob: 73231d8ebc2372d6a07d2eb59b244bf63e3ec5c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import definePlugin from "../utils/types";

export default definePlugin({
    name: "MuteNewGuild",
    description: "Mutes newly joined guilds",
    authors: [{
        name:"Glitchy",
        id: 269567451199569920n
    }],
    patches: [
        {
            find: ",acceptInvite:function",
            replacement: {
                match: /(\w=null!==[^;]+)/,
                replace: "$1;Vencord.Webpack.findByProps('updateGuildNotificationSettings').updateGuildNotificationSettings($1,{'muted':true,'suppress_everyone':true,'suppress_roles':true})"
            }
        }
    ],
})