Skip to content

Commit

Permalink
fix: Make the followUp function error more clear (#7129)
Browse files Browse the repository at this point in the history
Co-authored-by: D Trombett <maxtromb.dt@gmail.com>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
  • Loading branch information
3 people committed Dec 22, 2021
1 parent 7b65a04 commit b763dab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/structures/interfaces/InteractionResponses.js
Expand Up @@ -162,6 +162,7 @@ class InteractionResponses {
* @returns {Promise<Message|APIMessage>}
*/
followUp(options) {
if (!this.deferred && !this.replied) return Promise.reject(new Error('INTERACTION_NOT_REPLIED'));
return this.webhook.send(options);
}

Expand Down

0 comments on commit b763dab

Please sign in to comment.