From fbdf26ff7a561fd1a6a9d8ba1e609c01efb4aa22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Pereira?= Date: Mon, 31 Oct 2022 12:13:54 +0000 Subject: [PATCH] Add discordapp invite filter --- commands/fun/tweet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/fun/tweet.js b/commands/fun/tweet.js index 76e2d06..7833cc9 100644 --- a/commands/fun/tweet.js +++ b/commands/fun/tweet.js @@ -73,7 +73,7 @@ export default { return; } // Do not allow discord invites - if (tweet.includes('discord.gg') || tweet.includes('discord.com/invite/')) { + if (tweet.includes('discord.gg') || tweet.includes('discord.com/invite/') || tweet.includes('discordapp.com/invite/')) { await interaction.editReply({ content: 'No discord invites allowed.' }); return; }