From 45c7633a4109aaf2471fd1d381f9f56836158a62 Mon Sep 17 00:00:00 2001 From: zobweyt Date: Sun, 9 Jun 2024 12:42:29 +0300 Subject: [PATCH] Update post-execution handling --- src/Giveaways/Common/Results/InteractionResult.cs | 2 -- .../Extensions/Snowflake/DiscordInteractionExtensions.cs | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Giveaways/Common/Results/InteractionResult.cs b/src/Giveaways/Common/Results/InteractionResult.cs index 9799cab..41bb4f3 100644 --- a/src/Giveaways/Common/Results/InteractionResult.cs +++ b/src/Giveaways/Common/Results/InteractionResult.cs @@ -2,8 +2,6 @@ namespace Giveaways; -// TODO: Learn about the post-execution interaction results. - /// /// Represents the result of an interaction used to handle it at the /// post-execution. diff --git a/src/Giveaways/Extensions/Snowflake/DiscordInteractionExtensions.cs b/src/Giveaways/Extensions/Snowflake/DiscordInteractionExtensions.cs index df4e664..7ce6d0e 100644 --- a/src/Giveaways/Extensions/Snowflake/DiscordInteractionExtensions.cs +++ b/src/Giveaways/Extensions/Snowflake/DiscordInteractionExtensions.cs @@ -24,8 +24,8 @@ public static async Task HandleWithResultAsync(this IDiscordInteraction interact .Build(); if (interaction.HasResponded) - await interaction.FollowupAsync(embed: embed).ConfigureAwait(false); + await interaction.FollowupAsync(embed: embed, ephemeral: true).ConfigureAwait(false); else - await interaction.RespondAsync(embed: embed).ConfigureAwait(false); + await interaction.RespondAsync(embed: embed, ephemeral: true).ConfigureAwait(false); } }