feat(plugin): add muteNewGuild Plugin (#17)

This commit is contained in:
GlitchyChan 2022-10-01 00:49:26 +00:00 committed by GitHub
parent ef353f1d66
commit 175bf1b693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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