diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-31 22:46:32 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-31 22:46:32 -0400 |
commit | 710c1b9cc95d4f9cc5a437952c4cf89eca3f16cd (patch) | |
tree | c617d38a53064667e8d501aa1ed539ca1d8db3f7 /src/listeners/commands | |
parent | 2f2a85707737753b23c8036de085c322641695e1 (diff) | |
download | tanzanite-710c1b9cc95d4f9cc5a437952c4cf89eca3f16cd.tar.gz tanzanite-710c1b9cc95d4f9cc5a437952c4cf89eca3f16cd.tar.bz2 tanzanite-710c1b9cc95d4f9cc5a437952c4cf89eca3f16cd.zip |
misc fixes
Diffstat (limited to 'src/listeners/commands')
-rw-r--r-- | src/listeners/commands/commandError.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/listeners/commands/commandError.ts b/src/listeners/commands/commandError.ts index 22ed0c6..f7bd44d 100644 --- a/src/listeners/commands/commandError.ts +++ b/src/listeners/commands/commandError.ts @@ -21,12 +21,14 @@ export default class CommandErrorListener extends BushListener { const errorNo = Math.floor(Math.random() * 6969696969) + 69; // hehe funny number const errorEmbed: MessageEmbed = new MessageEmbed() .setTitle(`${isSlash ? 'Slash ' : ''}Error # \`${errorNo}\`: An error occurred`) + // eslint-disable-next-line @typescript-eslint/no-base-to-string .addField('Error', await util.codeblock(`${error?.stack || error}`, 1024, 'js')) .setColor(util.colors.error) .setTimestamp(); const description = [ `**User:** ${message.author} (${message.author.tag})`, `**Command:** ${command}`, + // eslint-disable-next-line @typescript-eslint/no-base-to-string `**Channel:** ${message.channel} (${message.channel?.id})`, `**Message:** [link](${message.url})` ]; @@ -60,6 +62,7 @@ export default class CommandErrorListener extends BushListener { .setTitle(`A Command Error Occurred ${error?.code ? `\`${error.code}\`` : ''}`) .setColor(util.colors.error) .setTimestamp() + // eslint-disable-next-line @typescript-eslint/no-base-to-string .setDescription(await util.codeblock(`${error?.stack || error}`, 2048, 'js')); (await message.util?.send({ embeds: [errorDevEmbed] }).catch((e) => { const channel = message.channel.type === 'DM' ? message.channel.recipient.tag : message.channel.name; |