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