Lockdown Out of Beta

This commit is contained in:
Daniel Odendahl Jr
2017-04-01 21:05:10 +00:00
parent 800ccd69a7
commit 4a4ab71ba8
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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!');
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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>