@@ -663,12 +663,12 @@ well.
663
663
Possible initial responses:
664
664
665
665
- Output text in your script response field. This text will be sent as an interaction response.
666
- - You can even use the ` ephemeralResponse ` function to turn it _ ephemeral_ .
666
+ - You can even use the ` ephemeralResponse ` function to turn it _ ephemeral_ .
667
667
- Use the ` sendResponse ` function to send a response as soon as the function runs.
668
- - You can also use this to send ` embeds ` or ` complexMessages ` .
669
- - You'll need to send a ` complexMessage ` and pass it ` "ephemeral" true ` as an argument to send _ ephemeral_ messages.
670
- - ` sendResponse ` comes in ` NoEscape ` and ` RetID ` variants too.
671
- - When sending an initial response, ` sendResponse ` does not need an interaction token, ` nil ` can be used.
668
+ - You can also use this to send ` embeds ` or ` complexMessages ` .
669
+ - You'll need to send a ` complexMessage ` and pass it ` "ephemeral" true ` as an argument to send _ ephemeral_ messages.
670
+ - ` sendResponse ` comes in ` NoEscape ` and ` RetID ` variants too.
671
+ - When sending an initial response, ` sendResponse ` does not need an interaction token, ` nil ` can be used.
672
672
- Use the ` sendModal ` function to show the user a modal. You cannot respond to a user submitting a modal by sending them
673
673
another modal.
674
674
- Use the ` updateMessage ` function to edit the message the command triggered from. This works the same way as editing a
@@ -686,24 +686,24 @@ interaction token of the interaction they should be following up on.
686
686
Possible followups:
687
687
688
688
- Output text in your script response field. This text will be sent as an interaction followup.
689
- - You can even use the ` ephemeralResponse ` function to turn it _ ephemeral_ .
689
+ - You can even use the ` ephemeralResponse ` function to turn it _ ephemeral_ .
690
690
- Use the ` sendResponse ` function to send a followup as soon as the function runs. Note that this function morphs into
691
691
sending followups if an initial response has already been made.
692
- - You can also use this to send ` embeds ` or ` complexMessages ` .
693
- - ` sendResponse ` comes in ` NoEscape ` and ` RetID ` variants too.
694
- - It's important to capture the message ID of any
695
- followups you'll want to edit or retrieve later, especially if you follow up ephemerally. If you follow up
696
- ephemerally without saving the message ID, you'll never be able to interface with that message again.
692
+ - You can also use this to send ` embeds ` or ` complexMessages ` .
693
+ - ` sendResponse ` comes in ` NoEscape ` and ` RetID ` variants too.
694
+ - It's important to capture the message ID of any
695
+ followups you'll want to edit or retrieve later, especially if you follow up ephemerally. If you follow up
696
+ ephemerally without saving the message ID, you'll never be able to interface with that message again.
697
697
- Use the ` editResponse ` function to edit an initial response or a followup message.
698
- - When editing an initial response, the ` messageID ` argument should be ` nil ` .
699
- - When editing a followup message, the ` messageID ` argument is required.
700
- - You can still edit any initial responses or followups using the standard ` editMessage ` function as long as they
701
- aren't _ ephemeral_ .
698
+ - When editing an initial response, the ` messageID ` argument should be ` nil ` .
699
+ - When editing a followup message, the ` messageID ` argument is required.
700
+ - You can still edit any initial responses or followups using the standard ` editMessage ` function as long as they
701
+ aren't _ ephemeral_ .
702
702
- Use the ` getResponse ` function to get an initial response or a followup message.
703
- - When getting an initial response, the ` messageID ` argument should be ` nil ` .
704
- - When getting a followup message, the ` messageID ` argument is required.
705
- - You can still get any initial responses or followups using the standard ` getMessage ` function as long as they
706
- aren't _ ephemeral_ .
703
+ - When getting an initial response, the ` messageID ` argument should be ` nil ` .
704
+ - When getting a followup message, the ` messageID ` argument is required.
705
+ - You can still get any initial responses or followups using the standard ` getMessage ` function as long as they
706
+ aren't _ ephemeral_ .
707
707
708
708
[ Interaction Function documentation] ( /docs/reference/templates/functions#interactions )
709
709
0 commit comments