This commit is contained in:
Daniel Odendahl Jr
2017-04-26 17:41:05 +00:00
parent 29005a8945
commit b4cc3dab20
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ module.exports = class BanCommand extends Command {
} }
hasPermission(msg) { hasPermission(msg) {
return msg.member.has('BAN_MEMBERS'); return msg.member.permissions.has('BAN_MEMBERS');
} }
async run(message, args) { async run(message, args) {
+1 -1
View File
@@ -28,7 +28,7 @@ module.exports = class KickCommand extends Command {
} }
hasPermission(msg) { hasPermission(msg) {
return msg.member.has('KICK_MEMBERS'); return msg.member.permissions.has('KICK_MEMBERS');
} }
async run(message, args) { async run(message, args) {
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = class LockdownCommand extends Command {
} }
hasPermission(msg) { hasPermission(msg) {
return msg.member.has('ADMINISTRATOR'); return msg.member.permissions.has('ADMINISTRATOR');
} }
async run(message, args) { async run(message, args) {
+1 -1
View File
@@ -26,7 +26,7 @@ module.exports = class PruneCommand extends Command {
} }
hasPermission(msg) { hasPermission(msg) {
return msg.member.has('MANAGE_MESSAGES'); return msg.member.permissions.has('MANAGE_MESSAGES');
} }
async run(message, args) { async run(message, args) {
+1 -1
View File
@@ -35,7 +35,7 @@ module.exports = class UnbanCommand extends Command {
} }
hasPermission(msg) { hasPermission(msg) {
return msg.member.has('BAN_MEMBERS'); return msg.member.permissions.has('BAN_MEMBERS');
} }
async run(message, args) { async run(message, args) {
+1 -1
View File
@@ -27,7 +27,7 @@ module.exports = class WarnCommand extends Command {
} }
hasPermission(msg) { hasPermission(msg) {
return msg.member.has('MANAGE_MESSAGES'); return msg.member.permissions.has('MANAGE_MESSAGES');
} }
async run(message, args) { async run(message, args) {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "xiaobot", "name": "xiaobot",
"version": "15.4.3", "version": "15.4.4",
"description": "A Discord Bot", "description": "A Discord Bot",
"main": "shardingmanager.js", "main": "shardingmanager.js",
"scripts": { "scripts": {