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
|
||||
*/
|
||||
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();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user