fix(ModalSubmitInteraction): add isFromMessage() missing method (#8092)

This commit is contained in:
MateoDeveloper
2022-06-14 18:02:03 -05:00
committed by GitHub
parent afb18b99b7
commit 0ab2227984

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() {}