|
|
|
@ -41,7 +41,7 @@ export async function sendErrorMessage(ctx: CommandContext, err: unknown): Promi |
|
|
|
|
return |
|
|
|
|
default: |
|
|
|
|
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, |
|
|
|
|
}) |
|
|
|
|
return |
|
|
|
|