Updates to error codes

main
Mari 2 years ago
parent 826210461d
commit ffc6cf82d3
  1. 2
      src/queries/ErrorCodes.ts

@ -41,7 +41,7 @@ export async function sendErrorMessage(ctx: CommandContext, err: unknown): Promi
return return
default: default:
await ctx.send({ await ctx.send({
content: `**Unexpected Error (${err.code})**${err.message ? ": " : ""}${err.message}${err.detail ? "\n" : ""}${err.detail}${err.hint ? "\n\n**Tip**: " : ""}${err.hint}`, content: `**Unexpected Error${err.code ? ` (${err.code})` : ""}**${err.message ? `: ${err.message}` : ""}${err.detail ? `\n${err.detail}` : ""}${err.hint ? `\n\n**Tip**: ${err.hint}` : ""}`,
ephemeral: true, ephemeral: true,
}) })
return return

Loading…
Cancel
Save