mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Lockdown Out of Beta
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = class LockdownCommand extends commando.Command {
|
||||
});
|
||||
}
|
||||
hasPermission(msg) {
|
||||
return msg.member.hasPermission('MANAGE_CHANNELS');
|
||||
return msg.member.hasPermission('ADMINISTRATOR');
|
||||
}
|
||||
|
||||
async run(message, args) {
|
||||
@@ -38,7 +38,7 @@ module.exports = class LockdownCommand extends commando.Command {
|
||||
await message.channel.overwritePermissions(message.guild.defaultRole, {
|
||||
SEND_MESSAGES: false
|
||||
});
|
||||
return message.say('**Lockdown Started, users with no roles can no longer post messages. Please use ;lockdown stop to end the lockdown.**');
|
||||
return message.say('**Lockdown Started, users without Administrator can no longer post messages. Please use ;lockdown stop to end the lockdown.**');
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(':x: Error! Something went wrong!');
|
||||
@@ -49,7 +49,7 @@ module.exports = class LockdownCommand extends commando.Command {
|
||||
await message.channel.overwritePermissions(message.guild.defaultRole, {
|
||||
SEND_MESSAGES: true
|
||||
});
|
||||
return message.say('**Lockdown Ended, users with no roles can now post messages.**');
|
||||
return message.say('**Lockdown Ended, users without Administrator can now post messages.**');
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(':x: Error! Something went wrong!');
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<ul>
|
||||
<li>Get User Info</li>
|
||||
<li>Get Server Info</li>
|
||||
<li>Moderation Commands</li>
|
||||
<li>Moderation Commands, Including Prune, Ban/Kick/Unban/Warn, and Lockdown.</li>
|
||||
<li>Random Images (Cat, Pun, Potato, etc.)</li>
|
||||
<li>Magic 8 Ball</li>
|
||||
<li>Avatar Editing (RIP, Bob Ross, etc.)</li>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<ul>
|
||||
<li>Get User Info</li>
|
||||
<li>Get Server Info</li>
|
||||
<li>Moderation Commands</li>
|
||||
<li>Moderation Commands, Including Prune, Ban/Kick/Unban/Warn, and Lockdown.</li>
|
||||
<li>Random Images (Cat, Pun, Potato, etc.)</li>
|
||||
<li>Magic 8 Ball</li>
|
||||
<li>Avatar Editing (RIP, Bob Ross, etc.)</li>
|
||||
|
||||
Reference in New Issue
Block a user