From 1f2fd34ac512c16ee53f70906642ecfd97f1394c Mon Sep 17 00:00:00 2001 From: mudkipscience Date: Sat, 10 Dec 2022 00:14:24 +1100 Subject: [PATCH] disallow @everyone --- bot/index.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bot/index.js b/bot/index.js index 56670d1..0bf0431 100644 --- a/bot/index.js +++ b/bot/index.js @@ -101,7 +101,7 @@ class WoomyClient extends Discord.Client { const client = new WoomyClient({ shards: 'auto', partials: [ - Discord.Partials.Reaction, + Discord.Partials.Reaction ], intents: [ Discord.GatewayIntentBits.Guilds, @@ -110,8 +110,14 @@ const client = new WoomyClient({ Discord.GatewayIntentBits.GuildVoiceStates, Discord.GatewayIntentBits.GuildMessages, Discord.GatewayIntentBits.MessageContent, - Discord.GatewayIntentBits.GuildMessageReactions, - ] + Discord.GatewayIntentBits.GuildMessageReactions + ], + allowedMentions: { + parse: [ + 'users', + 'roles' + ] + } }); // Extensions of native javascript types, *not good practice* but they're useful