From dda395739cb01fce0ecd975f8553ad1a19cfa922 Mon Sep 17 00:00:00 2001 From: Matias Espinoza Date: Mon, 20 Mar 2023 19:06:25 -0300 Subject: [PATCH] Removed unnecesary 'await' --- src/bot/commands/clearCommand.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot/commands/clearCommand.ts b/src/bot/commands/clearCommand.ts index 7251ec4..6ffe5ee 100644 --- a/src/bot/commands/clearCommand.ts +++ b/src/bot/commands/clearCommand.ts @@ -28,8 +28,8 @@ export const ClearCommand: Command = { /** * Delete the messages one by one if the channel is a DM channel */ - await messages.forEach((message) => { - if (message.author.id !== client.user?.id) return; + messages.forEach((message) => { + if (message.author.id !== client.user?.id) return; // Skip if the message is not from the bot message.delete(); }); }