Fixed typo (#2206)

`await arg2.Interaction.RespondAsync("Command exception: {arg3.ErrorReason}");` would never have showed the `ErrorReason` because a `$` was missing before the string.
This commit is contained in:
Raiden Shogun
2022-03-26 13:33:21 +01:00
committed by GitHub
parent fc31589056
commit c286b9978e

View File

@@ -16,7 +16,7 @@ async Task SlashCommandExecuted(SlashCommandInfo arg1, Discord.IInteractionConte
await arg2.Interaction.RespondAsync("Invalid number or arguments"); await arg2.Interaction.RespondAsync("Invalid number or arguments");
break; break;
case InteractionCommandError.Exception: case InteractionCommandError.Exception:
await arg2.Interaction.RespondAsync("Command exception:{arg3.ErrorReason}"); await arg2.Interaction.RespondAsync($"Command exception: {arg3.ErrorReason}");
break; break;
case InteractionCommandError.Unsuccessful: case InteractionCommandError.Unsuccessful:
await arg2.Interaction.RespondAsync("Command could not be executed"); await arg2.Interaction.RespondAsync("Command could not be executed");