Skip to content

Commit

Permalink
select_menus - Fixed spelling of "Deferred" (#461)
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Braatz <philopbritz@gmail.com>
  • Loading branch information
philipbraatz committed Mar 9, 2024
1 parent 41a32f6 commit 243731c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DisCatSharp.Docs/articles/topics/components/select_menus.md
Expand Up @@ -100,15 +100,15 @@ When any select menu is pressed, it will fire the [ComponentInteractionCreated](

In the event args, `Id` will be the id of the select menu you specified. There's also an `Interaction` property, which contains the interaction the event created. It's important to respond to an interaction within 3 seconds, or it will time out. Responding after this period will throw a `NotFoundException`.

With select menus, there are two new response types: `DefferedMessageUpdate` and `UpdateMessage`.
With select menus, there are two new response types: `DeferedMessageUpdate` and `UpdateMessage`.
using `DeferredMessageUpdate` lets you create followup messages via the [followup message builder](xref:DisCatSharp.Entities.DiscordFollowupMessageBuilder).

You have 15 minutes from that point to make followup messages. Responding to that interaction looks like this:

```cs
client.ComponentInteractionCreated += async (s, e) =>
{
await e.Interaction.CreateResponseAsync(InteractionResponseType.DefferedMessageUpdate);
await e.Interaction.CreateResponseAsync(InteractionResponseType.DeferedMessageUpdate);
// Do things.. //
}
```
Expand Down

0 comments on commit 243731c

Please sign in to comment.