diff options
author | GlitchyChan <46732589+GlitchChan@users.noreply.github.com> | 2022-10-01 00:49:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-01 02:49:26 +0200 |
commit | 175bf1b6937db18fae8d1f44c5c4a61f46c99895 (patch) | |
tree | 0cadaf3d97d7fdf3decd6de9214049b2d49c5157 | |
parent | ef353f1d66dbf1d14e528830d267aac518ed1beb (diff) | |
download | Vencord-175bf1b6937db18fae8d1f44c5c4a61f46c99895.tar.gz Vencord-175bf1b6937db18fae8d1f44c5c4a61f46c99895.tar.bz2 Vencord-175bf1b6937db18fae8d1f44c5c4a61f46c99895.zip |
feat(plugin): add muteNewGuild Plugin (#17)
-rw-r--r-- | src/plugins/muteNewGuild.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/plugins/muteNewGuild.ts b/src/plugins/muteNewGuild.ts new file mode 100644 index 0000000..73231d8 --- /dev/null +++ b/src/plugins/muteNewGuild.ts @@ -0,0 +1,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})" + } + } + ], +}) |