From 7a1e6d551ca38976dc5150b21dbdb7ac889c6bd2 Mon Sep 17 00:00:00 2001 From: HEJOK254 <90698026+HEJOK254@users.noreply.github.com> Date: Tue, 29 Oct 2024 22:47:07 +0100 Subject: [PATCH] Fix SlashCommand Exception Handling Log It now actually logs at least the type of error lol --- Commands/InteractionServiceHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Commands/InteractionServiceHandler.cs b/Commands/InteractionServiceHandler.cs index febcac7..27ace51 100644 --- a/Commands/InteractionServiceHandler.cs +++ b/Commands/InteractionServiceHandler.cs @@ -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)