Vencord/src/plugins/muteNewGuild.ts
Ven 74c3930e0a
add eslint config (#53)
* eslint

* workflow

* lint main
2022-10-06 00:42:58 +02:00

17 lines
583 B
TypeScript

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