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