Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DefferredMessageUpdate -> DeferredMessageUpdate #110

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ When any button is pressed, it will fire the [ComponentInteractionCreated](xref:

In the event args, `Id` will be the id of the button 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 buttons, there are two new response types: `DefferedMessageUpdate` and `UpdateMessage`.
With buttons, 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). The button will return to being in it's 'dormant' state, or it's 'unpushed' state, if you will.

Expand All @@ -136,7 +136,7 @@ You have 15 minutes from that point to make followup messages. Responding to tha
```cs
client.ComponentInteractionCreated += async (s, e) =>
{
await e.Interaction.CreateResponseAsync(InteractionResponseType.DefferedMessageUpdate);
await e.Interaction.CreateResponseAsync(InteractionResponseType.DeferedMessageUpdate);
// Do things.. //
}
```
Expand Down