mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +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.');
|
||||
const channel = await msg.channel.clone();
|
||||
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();
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user