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