Removed unnecesary 'await'

This commit is contained in:
Matias Espinoza 2023-03-20 19:06:25 -03:00
parent 58e9b0c646
commit dda395739c

View File

@ -28,8 +28,8 @@ export const ClearCommand: Command = {
/** /**
* Delete the messages one by one if the channel is a DM channel * Delete the messages one by one if the channel is a DM channel
*/ */
await messages.forEach((message) => { messages.forEach((message) => {
if (message.author.id !== client.user?.id) return; if (message.author.id !== client.user?.id) return; // Skip if the message is not from the bot
message.delete(); message.delete();
}); });
} }