From 71318260c17c982c6ac3ff578d17c8cf4f11b7a6 Mon Sep 17 00:00:00 2001 From: Lunar Starstrum Date: Mon, 6 Nov 2023 23:33:43 -0600 Subject: [PATCH] Allow edits of deferred responses --- src/Processors/SlashCommands/SlashCommandContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Processors/SlashCommands/SlashCommandContext.cs b/src/Processors/SlashCommands/SlashCommandContext.cs index a8b7144..7deeefc 100644 --- a/src/Processors/SlashCommands/SlashCommandContext.cs +++ b/src/Processors/SlashCommands/SlashCommandContext.cs @@ -50,7 +50,7 @@ public override async ValueTask DelayResponseAsync() /// 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."); }