Fix for Lockdown killing the bot's ability to send messages

This commit is contained in:
Daniel Odendahl Jr
2017-04-01 21:07:37 +00:00
parent 4a4ab71ba8
commit 8ed6e15aff
+3
View File
@@ -38,6 +38,9 @@ module.exports = class LockdownCommand extends commando.Command {
await message.channel.overwritePermissions(message.guild.defaultRole, {
SEND_MESSAGES: false
});
await message.channel.overwritePermissions(message.guild.member(this.client.user), {
SEND_MESSAGES: true
});
return message.say('**Lockdown Started, users without Administrator can no longer post messages. Please use ;lockdown stop to end the lockdown.**');
}
catch (err) {