mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 08:34:15 +02:00
fix(arabot): add failsafe for clear command reply on completion
This commit is contained in:
parent
8070430976
commit
76f8aa369c
@ -98,8 +98,9 @@ export class ClearCommand extends Command {
|
|||||||
|
|
||||||
await channel.bulkDelete(messages);
|
await channel.bulkDelete(messages);
|
||||||
|
|
||||||
await message.reply(`Successfully deleted ${messages} messages!`);
|
await message.reply({
|
||||||
|
content: `Successfully deleted ${messages} messages!`,
|
||||||
await message.react('✅');
|
failIfNotExists: false,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user