Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Allow edits of deferred responses
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed Nov 7, 2023
1 parent 58e10b9 commit 7131826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Processors/SlashCommands/SlashCommandContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public override async ValueTask DelayResponseAsync()
/// <inheritdoc />
public override async ValueTask EditResponseAsync(IDiscordMessageBuilder builder)
{
if (!State.HasFlag(InteractionState.ResponseSent) || !State.HasFlag(InteractionState.ResponseDelayed))
if (!State.HasFlag(InteractionState.ResponseSent) && !State.HasFlag(InteractionState.ResponseDelayed))
{
throw new InvalidOperationException("Cannot edit a response that has not been sent yet.");
}
Expand Down

0 comments on commit 7131826

Please sign in to comment.