Removed unnecesary 'await'

This commit is contained in:
Matias Espinoza 2023-03-20 19:06:25 -03:00
parent 58e9b0c646
commit dda395739c
1 changed files with 2 additions and 2 deletions

View File

@ -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();
});
}