Methods
Interaction
Replying
Responds to an interaction. Example****
Edit
Edits an interaction response that was sent using the .reply()
method. Example****
Delete
Deletes an interaction response that was sent using the .reply()
method. Example****
Follow-up Messages
Follow-up messages allow you to send multiple messages from a single interaction. Example****
Follow-up messages and interaction responses work with a unique interaction token which is generated when an interaction is created. This unique token is only valid for 15 minutes. Then, interaction response/follow-up messages sent after that won't be successful.
Ephemeral Responses
Using flags we can create ephemeral (private) responses. Example****
This will only respond to the author of the interaction, find the Docs here
Reactions
With Shandler's newest update we can now react to messages. Example****
Attachments
Using Discord.js MessageAttachments, we are able to send attachments in our interactions. Example****
Embeds
Using Discord.js MessageEmbeds, we are able to send embeds in our interactions. Example****
Defer
Send type 5 replies with ease. Example****
Checks
isComponent()
Check to see if an interaction is a component. Returns a boolean.
isCommand()
Check to see if an interaction is a command. Returns a boolean.
Last updated