fix(ModalSubmitInteraction): add isFromMessage() missing method

v13.8.1
This commit is contained in:
March 7th 2022-06-17 12:43:10 +07:00
parent 150e86a074
commit 8b98630169

View File

@ -94,6 +94,14 @@ class ModalSubmitInteraction extends Interaction {
}));
}
/**
* Whether this is from a {@link MessageComponentInteraction}.
* @returns {boolean}
*/
isFromMessage() {
return Boolean(this.message);
}
// These are here only for documentation purposes - they are implemented by InteractionResponses
/* eslint-disable no-empty-function */
deferReply() {}