Nvm one more

This commit is contained in:
Daniel Odendahl Jr
2017-08-26 02:17:03 +00:00
parent 2d1088171c
commit 1a035be702
+1
View File
@@ -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.');