diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-14 21:22:09 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-14 21:22:09 -0400 |
commit | 53d2b18f7f73d5696fb7cd86d1c164a790dfdcc3 (patch) | |
tree | f95f23aad382879b35860d4d3be3642068fac8a2 /src/listeners/commands | |
parent | eaaae08aeee1fa16a4e1ad0b26fceb42885bfcde (diff) | |
download | tanzanite-53d2b18f7f73d5696fb7cd86d1c164a790dfdcc3.tar.gz tanzanite-53d2b18f7f73d5696fb7cd86d1c164a790dfdcc3.tar.bz2 tanzanite-53d2b18f7f73d5696fb7cd86d1c164a790dfdcc3.zip |
started moving over some other commands
Diffstat (limited to 'src/listeners/commands')
-rw-r--r-- | src/listeners/commands/commandMissingPermissions.ts | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/listeners/commands/commandMissingPermissions.ts b/src/listeners/commands/commandMissingPermissions.ts index ffcc408..f3d2218 100644 --- a/src/listeners/commands/commandMissingPermissions.ts +++ b/src/listeners/commands/commandMissingPermissions.ts @@ -16,15 +16,6 @@ export default class CommandMissingPermissionsListener extends BushListener { type: 'client' | 'user', missing: Array<PermissionString> ): Promise<void> { - this.client.console.debug(message.guild.me.permissions.toArray()); - missing.forEach((permission) => { - this.client.console.debug(message.guild.me.permissions.has(permission)); - }); - message.guild.me.permissions; - this.client.console.debug(type); - this.client.console.debug(command.clientPermissions); - this.client.console.debug(command.userPermissions); - this.client.console.debug(missing); const niceMissing = []; missing.forEach((missing) => { if (this.client.consts.mappings.permissions[missing]) { @@ -34,7 +25,7 @@ export default class CommandMissingPermissionsListener extends BushListener { } }); - const discordFormat = this.client.util.oxford(this.client.util.surroundArray(niceMissing, '`'), 'and', ''); + const discordFormat = this.client.util.oxford(this.client.util.surroundArray(niceMissing, '**'), 'and', ''); const consoleFormat = this.client.util.oxford(this.client.util.surroundArray(niceMissing, '<<', '>>'), 'and', ''); this.client.console.info( 'CommandMissingPermissions', @@ -55,7 +46,7 @@ export default class CommandMissingPermissionsListener extends BushListener { .reply( `${this.client.util.emojis.error} You are missing the ${discordFormat} permission${ missing.length ? 's' : '' - } required for the \`${command?.id}\` command.` + } required for the **${command?.id}** command.` ) .catch(() => {}); } |