blob: 428060f1029af777dc8c51ecb61e9d63b8cf812c (
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})"
}
}
],
});
|