docs(InteractionResponses): generalize wording in update to fit other component interaction types (#6074)

This commit is contained in:
BaumianerNiklas
2021-07-08 16:39:36 +02:00
committed by GitHub
parent c1eaa78ab7
commit 67e9ce4693

View File

@@ -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)