2022-09-30 20:49:26 -04:00
|
|
|
import definePlugin from "../utils/types";
|
2022-10-05 18:42:58 -04:00
|
|
|
import { Devs } from "../utils/constants";
|
2022-09-30 20:49:26 -04:00
|
|
|
|
|
|
|
export default definePlugin({
|
|
|
|
name: "MuteNewGuild",
|
|
|
|
description: "Mutes newly joined guilds",
|
2022-10-04 15:38:38 -04:00
|
|
|
authors: [Devs.Glitch],
|
2022-09-30 20:49:26 -04: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 18:42:58 -04:00
|
|
|
});
|