Removed unnecesary 'await'
This commit is contained in:
parent
58e9b0c646
commit
dda395739c
@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user