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