mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +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.
|
* Updates the original message of the component on which the interaction was received on.
|
||||||
* @param {string|MessagePayload|WebhookEditMessageOptions} options The options for the reply
|
* @param {string|MessagePayload|WebhookEditMessageOptions} options The options for the updated message
|
||||||
* @returns {Promise<Message|void>}
|
* @returns {Promise<Message|void>}
|
||||||
* @example
|
* @example
|
||||||
* // Remove the components from the message
|
* // Remove the components from the message
|
||||||
* interaction.update({
|
* interaction.update({
|
||||||
* content: "A button was clicked",
|
* content: "A component interaction was received",
|
||||||
* components: []
|
* components: []
|
||||||
* })
|
* })
|
||||||
* .then(console.log)
|
* .then(console.log)
|
||||||
|
|||||||
Reference in New Issue
Block a user