mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +02:00
Lockdown Out of Beta
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = class LockdownCommand extends commando.Command {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
hasPermission(msg) {
|
hasPermission(msg) {
|
||||||
return msg.member.hasPermission('MANAGE_CHANNELS');
|
return msg.member.hasPermission('ADMINISTRATOR');
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message, args) {
|
async run(message, args) {
|
||||||
@@ -38,7 +38,7 @@ module.exports = class LockdownCommand extends commando.Command {
|
|||||||
await message.channel.overwritePermissions(message.guild.defaultRole, {
|
await message.channel.overwritePermissions(message.guild.defaultRole, {
|
||||||
SEND_MESSAGES: false
|
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) {
|
catch (err) {
|
||||||
return message.say(':x: Error! Something went wrong!');
|
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, {
|
await message.channel.overwritePermissions(message.guild.defaultRole, {
|
||||||
SEND_MESSAGES: true
|
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) {
|
catch (err) {
|
||||||
return message.say(':x: Error! Something went wrong!');
|
return message.say(':x: Error! Something went wrong!');
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Get User Info</li>
|
<li>Get User Info</li>
|
||||||
<li>Get Server 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>Random Images (Cat, Pun, Potato, etc.)</li>
|
||||||
<li>Magic 8 Ball</li>
|
<li>Magic 8 Ball</li>
|
||||||
<li>Avatar Editing (RIP, Bob Ross, etc.)</li>
|
<li>Avatar Editing (RIP, Bob Ross, etc.)</li>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Get User Info</li>
|
<li>Get User Info</li>
|
||||||
<li>Get Server 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>Random Images (Cat, Pun, Potato, etc.)</li>
|
||||||
<li>Magic 8 Ball</li>
|
<li>Magic 8 Ball</li>
|
||||||
<li>Avatar Editing (RIP, Bob Ross, etc.)</li>
|
<li>Avatar Editing (RIP, Bob Ross, etc.)</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user