Skip to content

Commit

Permalink
Update Interaction.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCat80 committed May 30, 2021
1 parent 01b9656 commit fb16393
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/structures/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,20 @@ class Interaction extends Base {
}

/**
* Delete a message
* Delete a message !!Does nothing for some reason
* @arg {String} messageId the id of the message to edit, or "@original" for the original response, "@original" will will error with ephemeral messages
* @returns {Promise}
*/

//TODO: Find out why broken

async delete(messageId) {
if(!messageId)
return this._client.requestHandler.request("DELETE", Endpoints.WEBHOOK_MESSAGE(this.applicationId, this.token, messageId), true)
}

/**
* Edit a message
* Edit a message
* @arg {String} messageId the id of the message to edit, or "@original" for the original response, "@original" will will error with ephemeral messages
* @arg {String | Object} content What to edit the message with
* @returns {Promise}
Expand Down

0 comments on commit fb16393

Please sign in to comment.