mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
docs(InteractionResponses): generalize wording in update to fit other component interaction types (#6074)
This commit is contained in:
@@ -177,13 +177,13 @@ class InteractionResponses {
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the original message whose button was pressed.
|
||||
* @param {string|MessagePayload|WebhookEditMessageOptions} options The options for the reply
|
||||
* Updates the original message of the component on which the interaction was received on.
|
||||
* @param {string|MessagePayload|WebhookEditMessageOptions} options The options for the updated message
|
||||
* @returns {Promise<Message|void>}
|
||||
* @example
|
||||
* // Remove the components from the message
|
||||
* interaction.update({
|
||||
* content: "A button was clicked",
|
||||
* content: "A component interaction was received",
|
||||
* components: []
|
||||
* })
|
||||
* .then(console.log)
|
||||
|
||||
Reference in New Issue
Block a user