Skip to content

Commit c6677ad

Browse files
committed
fix: respond to modal with DEFERRED_UPDATE_MESSAGE
1 parent 63d9ab2 commit c6677ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SuggestionBot/Interactivity/DiscordModal.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using DSharpPlus;
1+
using DSharpPlus;
22
using DSharpPlus.Entities;
33
using DSharpPlus.EventArgs;
44

@@ -82,6 +82,6 @@ private Task OnModalSubmitted(DiscordClient sender, ModalSubmitEventArgs e)
8282
}
8383

8484
_taskCompletionSource.TrySetResult();
85-
return e.Interaction.CreateResponseAsync(InteractionResponseType.ChannelMessageWithSource);
85+
await e.Interaction.CreateResponseAsync(InteractionResponseType.DeferredMessageUpdate);
8686
}
8787
}

0 commit comments

Comments
 (0)