2022-10-01 00:49:26 +00:00
|
|
|
import definePlugin from "../utils/types";
|
2022-10-05 22:42:58 +00:00
|
|
|
import { Devs } from "../utils/constants";
|
2022-10-01 00:49:26 +00:00
|
|
|
|
|
|
|
export default definePlugin({
|
|
|
|
name: "MuteNewGuild",
|
|
|
|
description: "Mutes newly joined guilds",
|
2022-10-04 19:38:38 +00:00
|
|
|
authors: [Devs.Glitch],
|
2022-10-01 00:49:26 +00:00
|
|
|
patches: [
|
|
|
|
{
|
|
|
|
find: ",acceptInvite:function",
|
|
|
|
replacement: {
|
|
|
|
match: /(\w=null!==[^;]+)/,
|
|
|
|
replace: "$1;Vencord.Webpack.findByProps('updateGuildNotificationSettings').updateGuildNotificationSettings($1,{'muted':true,'suppress_everyone':true,'suppress_roles':true})"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2022-10-05 22:42:58 +00:00
|
|
|
});
|