mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix Prune
This commit is contained in:
@@ -44,8 +44,7 @@ module.exports = class PruneCommand extends commando.Command {
|
||||
let messages = await message.channel.fetchMessages({
|
||||
limit: count
|
||||
});
|
||||
let deletion = await message.channel.bulkDelete(messages, true);
|
||||
return deletion;
|
||||
await message.channel.bulkDelete(messages, true);
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(':x: Error! Something went wrong! Perhaps there are not enough messages in the channel from earlier than two weeks?');
|
||||
|
||||
Reference in New Issue
Block a user