diff options
Diffstat (limited to 'src/listeners/commands')
-rw-r--r-- | src/listeners/commands/commandError.ts | 3 | ||||
-rw-r--r-- | src/listeners/commands/commandMissingPermissions.ts | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/listeners/commands/commandError.ts b/src/listeners/commands/commandError.ts index 61fe206..f29c7e0 100644 --- a/src/listeners/commands/commandError.ts +++ b/src/listeners/commands/commandError.ts @@ -144,8 +144,7 @@ export default class CommandErrorListener extends BushListener { `**Channel:** <#${options.message.channel?.id}> (${options.channel})`, `**Message:** [link](${options.message.url})` ); - if (options.message?.util?.parsed?.content) - description.push(`**Command Content:** ${options.message.util.parsed.content}`); + if (options.message?.util?.parsed?.content) description.push(`**Command Content:** ${options.message.util.parsed.content}`); } description.push(...options.haste); diff --git a/src/listeners/commands/commandMissingPermissions.ts b/src/listeners/commands/commandMissingPermissions.ts index 0bbf916..c8a3a6e 100644 --- a/src/listeners/commands/commandMissingPermissions.ts +++ b/src/listeners/commands/commandMissingPermissions.ts @@ -41,9 +41,9 @@ export default class CommandMissingPermissionsListener extends BushListener { } else if (type == 'user') { return await message.util .reply( - `${util.emojis.error} You are missing the ${discordFormat} permission${ - missing.length ? 's' : '' - } required for the **${command?.id}** command.` + `${util.emojis.error} You are missing the ${discordFormat} permission${missing.length ? 's' : ''} required for the **${ + command?.id + }** command.` ) .catch(() => {}); } |