mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
Fix for Lockdown killing the bot's ability to send messages
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user