Skip to content

Commit 0ab2227

Browse files
authoredJun 14, 2022
fix(ModalSubmitInteraction): add isFromMessage() missing method (#8092)
1 parent afb18b9 commit 0ab2227

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/structures/ModalSubmitInteraction.js

+8
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ class ModalSubmitInteraction extends Interaction {
9494
}));
9595
}
9696

97+
/**
98+
* Whether this is from a {@link MessageComponentInteraction}.
99+
* @returns {boolean}
100+
*/
101+
isFromMessage() {
102+
return Boolean(this.message);
103+
}
104+
97105
// These are here only for documentation purposes - they are implemented by InteractionResponses
98106
/* eslint-disable no-empty-function */
99107
deferReply() {}

0 commit comments

Comments
 (0)
Please sign in to comment.