Skip to content

Commit

Permalink
Update post-execution handling
Browse files Browse the repository at this point in the history
  • Loading branch information
zobweyt committed Jun 9, 2024
1 parent 573c9c8 commit 45c7633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/Giveaways/Common/Results/InteractionResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Giveaways;

// TODO: Learn about the post-execution interaction results.

/// <summary>
/// Represents the result of an interaction used to handle it at the
/// <a href="https://docs.discordnet.dev/guides/int_framework/post-execution">post-execution</a>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 45c7633

Please sign in to comment.