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