From dd1ac8766612763e73ca6169250f91905c150778 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Tue, 14 Feb 2023 15:34:52 +1100 Subject: [PATCH] Remove unused const --- src/events/messageCreate.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index 4af6bb5..3d13256 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -40,8 +40,8 @@ export default { // if a spammed message exists; if (spammedMessage){ // mute - const muteResult = await client.punishments.addPunishment('mute', { time: '30m' }, (client.user as Discord.User).id, 'Automod; Banned words', message.author, message.member as Discord.GuildMember); - // and clear their list of long messages + await client.punishments.addPunishment('mute', { time: '30m' }, (client.user as Discord.User).id, 'Automod; Banned words', message.author, message.member as Discord.GuildMember); + // clear their list of long messages delete client.repeatedMessages[message.author.id]; } } else { @@ -67,7 +67,7 @@ export default { }); if (spammedMessage){ - const muteResult = await client.punishments.addPunishment('mute', {time: '1h'}, (client.user as Discord.User).id, 'Automod; Discord advertisement', message.author, message.member as Discord.GuildMember); + await client.punishments.addPunishment('mute', {time: '1h'}, (client.user as Discord.User).id, 'Automod; Discord advertisement', message.author, message.member as Discord.GuildMember); delete client.repeatedMessages[message.author.id]; } }else{