Skip to content

Commit

Permalink
fix(ModalSubmitInteraction): add isFromMessage() missing method (#8092
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Mateo-tem committed Jun 14, 2022
1 parent afb18b9 commit 0ab2227
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/structures/ModalSubmitInteraction.js
Expand Up @@ -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() {}
Expand Down

0 comments on commit 0ab2227

Please sign in to comment.