Skip to content

Commit

Permalink
Fix ephemeral responses in custom SlashCommandContext
Browse files Browse the repository at this point in the history
Resolves #30
  • Loading branch information
FloatingMilkshake committed Dec 16, 2024
1 parent 5c43927 commit ccd3d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SlashCommandContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public record SlashCommandContext : DSharpPlus.Commands.Processors.SlashCommands
interactionBuilder.AddMentions(Mentions.None);
}

interactionBuilder.AsEphemeral(DetermineResponsePrivacy());
interactionBuilder = interactionBuilder.AsEphemeral(DetermineResponsePrivacy(interactionBuilder.IsEphemeral));

if (this.Interaction.ResponseState is DiscordInteractionResponseState.Unacknowledged)
{
Expand Down

0 comments on commit ccd3d50

Please sign in to comment.