Discord.Net/docs/faq/int_framework/respondings-schemes.md
2024-06-13 17:43:59 +12:00

1.2 KiB

uid title
FAQ.Interactions.RespondingSchemes 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

Responding to a component interaction

Component interactions share a lot of response mwthods with slash command interactions, 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

Responding to a modal interaction

While being similar to Component Interaction Scheme, modal interactions lack the option of responding with a modal.

Slash command interaction