Lots of Changes

This commit is contained in:
Daniel Odendahl Jr
2017-08-26 01:20:43 +00:00
parent d2008c749d
commit 56e72f7509
78 changed files with 393 additions and 389 deletions
+2 -2
View File
@@ -22,14 +22,14 @@ class XiaoCommand extends Command {
if (this.clientPermissions) {
for (const permission of this.clientPermissions) {
if (!msg.channel.permissionsFor(this.client.user).has(permission)) {
return `The \`${this.name}\` command requires me to have the \`${perms[permission]}\` Permission.`;
return `The \`${this.name}\` command requires me to have the \`${perms[permission]}\` permission.`;
}
}
}
if (this.userPermissions) {
for (const permission of this.userPermissions) {
if (!msg.channel.permissionsFor(msg.author).has(permission)) {
return `The \`${this.name}\` command requires you to have the \`${perms[permission]}\` Permission.`;
return `The \`${this.name}\` command requires you to have the \`${perms[permission]}\` permission.`;
}
}
}