From 9682b5f956cc4de425f5e01bfb2f53d016313a40 Mon Sep 17 00:00:00 2001 From: maxximum <64035335+xMaxximum@users.noreply.github.com> Date: Sun, 16 Jan 2022 10:15:40 +0100 Subject: [PATCH] DefferredMessageUpdate -> DeferredMessageUpdate --- DisCatSharp.Docs/articles/beyond_basics/components/buttons.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DisCatSharp.Docs/articles/beyond_basics/components/buttons.md b/DisCatSharp.Docs/articles/beyond_basics/components/buttons.md index d493448e46..0990d30be2 100644 --- a/DisCatSharp.Docs/articles/beyond_basics/components/buttons.md +++ b/DisCatSharp.Docs/articles/beyond_basics/components/buttons.md @@ -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. @@ -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.. // } ```