diff --git a/docs/faq/int_framework/images/response-scheme-component.png b/docs/faq/int_framework/images/response-scheme-component.png new file mode 100644 index 00000000..117ce454 Binary files /dev/null and b/docs/faq/int_framework/images/response-scheme-component.png differ diff --git a/docs/faq/int_framework/images/response-scheme-modal.png b/docs/faq/int_framework/images/response-scheme-modal.png new file mode 100644 index 00000000..a4b6d635 Binary files /dev/null and b/docs/faq/int_framework/images/response-scheme-modal.png differ diff --git a/docs/faq/int_framework/images/response-scheme-slash.png b/docs/faq/int_framework/images/response-scheme-slash.png new file mode 100644 index 00000000..1014b22a Binary files /dev/null and b/docs/faq/int_framework/images/response-scheme-slash.png differ diff --git a/docs/faq/int_framework/respondings-schemes.md b/docs/faq/int_framework/respondings-schemes.md new file mode 100644 index 00000000..bba1f365 --- /dev/null +++ b/docs/faq/int_framework/respondings-schemes.md @@ -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) \ No newline at end of file diff --git a/docs/faq/toc.yml b/docs/faq/toc.yml index b727f511..e450cba7 100644 --- a/docs/faq/toc.yml +++ b/docs/faq/toc.yml @@ -16,6 +16,8 @@ topicUid: FAQ.Interactions.Framework - name: Manual handling topicUid: FAQ.Interactions.Manual + - name: Interaction response schemes + topicUid: FAQ.Interactions.RespondingSchemes - name: Text Commands items: - name: Text Command basics