Browse Source

Fixed typo

`await arg2.Interaction.RespondAsync("Command exception: {arg3.ErrorReason}");` would never have showed the `ErrorReason` because a `$` was missing before the string.
pull/2206/head
Raiden Shogun GitHub 3 years ago
parent
commit
5d6caee939
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      docs/guides/int_framework/samples/postexecution/error_review.cs

+ 1
- 1
docs/guides/int_framework/samples/postexecution/error_review.cs View File

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


Loading…
Cancel
Save