mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
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:
@@ -162,6 +162,7 @@ class InteractionResponses {
|
|||||||
* @returns {Promise<Message|APIMessage>}
|
* @returns {Promise<Message|APIMessage>}
|
||||||
*/
|
*/
|
||||||
followUp(options) {
|
followUp(options) {
|
||||||
|
if (!this.deferred && !this.replied) return Promise.reject(new Error('INTERACTION_NOT_REPLIED'));
|
||||||
return this.webhook.send(options);
|
return this.webhook.send(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user