[Docs] Add interaction response schemes (#2736)

* docfx 💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀

* updates
This commit is contained in:
Misha133
2023-08-10 15:41:19 +03:00
committed by GitHub
parent 5f580f6f1e
commit 184a536f95
5 changed files with 34 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 615 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 KiB

View File

@@ -0,0 +1,32 @@
---
uid: FAQ.Interactions.RespondingSchemes
title: Interaction response schemes
---
# Interaction Response Schemes
Working with interactions can appear hard and confusing - you might accidentally miss a cast or use a wrong method. These schemes should help you create efficient interaction response flows.
## Responding to a slash command interaction
Slash command interactions support the most commonly used response methods.
> [!NOTE]
> Same scheme applies to context command interactions.
![Slash command interaction](images/response-scheme-slash.png)
## Responding to a component interaction
Component interactions share a lot of response mwthods with [slash command interactions](#responding-to-a-slash-command-interaction), but they also provide a way to update the message components were attached to.
> [!NOTE]
> Some followup methods change their behavior depending on what initial response you've sent.
![Slash command interaction](images/response-scheme-component.png)
## Responding to a modal interaction
While being similar to [Component Interaction Scheme](#responding-to-a-modal-interaction), modal interactions lack the option of responding with a modal.
![Slash command interaction](images/response-scheme-modal.png)