Skip to content

Commit

Permalink
edit => editParent, editResponse => edit
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCat80 committed May 30, 2021
1 parent 096e35b commit 62d00b4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/structures/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ class Interaction extends Base {
}

/**
* Edit a past response to the interaction
* Edit a message
* @arg {String} messageId the id of the message to edit, or "@original" for the original response
* @arg {String | Object} content What to edit the message with
* @returns {Promise}
*/

async editResponse(messageId, content) {
async edit(messageId, content) {
if(content !== undefined) {
if(typeof content !== "object" || content === null) {
content = {
Expand All @@ -217,13 +217,12 @@ class Interaction extends Base {
}

/**
* Edit the interaction Message (Message Component only)
* @arg {String} messageId the id of the message to edit, or "@original" for the original response
* Edit the interaction Message !use edit if you have already responded with a different method (Message Component only)
* @arg {String | Object} content What to edit the message with
* @returns {Promise}
*/

async edit(content) {
async editParent(content) {
if(content !== undefined) {
if(typeof content !== "object" || content === null) {
content = {
Expand Down

0 comments on commit 62d00b4

Please sign in to comment.