Skip to content

Commit

Permalink
Fix SlashCommand Exception Handling Log
Browse files Browse the repository at this point in the history
It now actually logs at least the type of error lol
  • Loading branch information
HEJOK254 committed Oct 29, 2024
1 parent 89e6580 commit 7a1e6d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Commands/InteractionServiceHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private static async Task OnSlashCommandExecutedAsync(SlashCommandInfo commandIn

try
{
Log.Error("Error handling interaction: {result.Error}", result);
Log.Error("Error handling interaction: {Error}", result.Error); // TODO: Somehow get more information about the error
await interactionContext.Interaction.FollowupAsync("An error occurred while executing the command.", ephemeral: true);
}
catch (Exception e)
Expand Down

0 comments on commit 7a1e6d5

Please sign in to comment.