mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 14:18:36 +02:00
Nvm one more
This commit is contained in:
@@ -53,6 +53,7 @@ module.exports = class LockdownCommand extends Command {
|
|||||||
`);
|
`);
|
||||||
if (!time) return null;
|
if (!time) return null;
|
||||||
await wait(time);
|
await wait(time);
|
||||||
|
if (!this.channels.has(msg.channel.id)) return null;
|
||||||
await msg.channel.overwritePermissions(msg.guild.defaultRole, { SEND_MESSAGES: null });
|
await msg.channel.overwritePermissions(msg.guild.defaultRole, { SEND_MESSAGES: null });
|
||||||
this.channels.delete(msg.channel.id);
|
this.channels.delete(msg.channel.id);
|
||||||
return msg.say('Lockdown ended, all users can now post messages.');
|
return msg.say('Lockdown ended, all users can now post messages.');
|
||||||
|
|||||||
Reference in New Issue
Block a user