mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 13:53:12 +02:00
Beep
This commit is contained in:
@@ -19,7 +19,8 @@ module.exports = class ClearChannelCommand extends Command {
|
||||
|
||||
async run(msg) {
|
||||
if (!msg.channel.deletable) return msg.say('This channel cannot be deleted.');
|
||||
await msg.channel.clone();
|
||||
const channel = await msg.channel.clone();
|
||||
if (msg.channel.parent) await channel.setParent(msg.channel.parent);
|
||||
await msg.channel.delete();
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user