From 7a0bfa8a9544b6aaa4d2cf5c37705e8cb86080c2 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Sat, 4 Mar 2023 08:01:04 +1100 Subject: [PATCH] Removed {} from if statement. --- src/events/messageCreate.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index aba7132..695ebb2 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -77,9 +77,7 @@ export default { '742324777934520350', // #discord-moderators ] const gifURL = ['tenor.com/view', 'giphy.com/gifs', 'giphy.com/media'] - if (gifURL.some(e=>message.content.toLowerCase().includes(e)) && bannedChannels.includes(message.channelId)) { - message.reply('Gifs are not allowed in this channel.').then((msg: any)=>message.delete()) - } + if (gifURL.some(e=>message.content.toLowerCase().includes(e)) && bannedChannels.includes(message.channelId)) message.reply('Gifs are not allowed in this channel.').then((msg)=>message.delete()) // Autoresponse:tm: if (client.config.botSwitches.autores && !automodded) {