fix: Make the followUp function error more clear (#7129)

Co-authored-by: D Trombett <maxtromb.dt@gmail.com>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
RaZe
2021-12-22 12:13:34 +02:00
committed by GitHub
parent 7b65a04cb1
commit b763dabaa9

View File

@@ -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);
}