1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-11 02:16:23 +00:00
Vencord/src/plugins/muteNewGuild.ts

18 lines
580 B
TypeScript
Raw Normal View History

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