Skip to content

Commit

Permalink
acknowledge is just a promise
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCat80 committed May 30, 2021
1 parent afc67c4 commit 1830a3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/structures/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ class Interaction extends Base {

/**
* Acknowledges the interaction without replying.
* @returns {Promise<Boolean | Error>}
* @returns {Promise}
*/
async acknowledge() {
this._client.requestHandler.request("POST", Endpoints.INTERACTION_RESPONSE(this.id, this.token), true, {
type: Constants.InteractionResponseType.PONG
}).then(() => {return true}).catch(err => {return err});
})
}

/**
Expand Down

0 comments on commit 1830a3e

Please sign in to comment.