From 710c1b9cc95d4f9cc5a437952c4cf89eca3f16cd Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sat, 31 Jul 2021 22:46:32 -0400 Subject: misc fixes --- src/listeners/commands/commandError.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/listeners/commands') 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; -- cgit