Skip to content

Commit

Permalink
whistle
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Jan 26, 2024
1 parent b3cdd63 commit 6b09d92
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/structures/Interaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,18 @@ export default class Interaction extends Base {
}

/** A type guard, checking if this interaction is a {@link ModalSubmitInteraction | Modal Submit Interaction}. */
isModelSubmitInteraction(): this is IModalSubmitInteraction {
isModalSubmitInteraction(): this is IModalSubmitInteraction {
return this.type === InteractionTypes.MODAL_SUBMIT;
}

/**
* A type guard, checking if this interaction is a {@link ModalSubmitInteraction | Modal Submit Interaction}.
* @deprecated Use {@link Interaction#isModalSubmitInteraction | isModalSubmitInteraction}. This will be removed in `1.10.0`.
*/
isModelSubmitInteraction(): this is IModalSubmitInteraction {
return this.isModalSubmitInteraction();
}

/** A type guard, checking if this interaction is a {@link PingInteraction | Ping Interaction}. */
isPingInteraction(): this is IPingInteraction {
return this.type === InteractionTypes.PING;
Expand Down

0 comments on commit 6b09d92

Please sign in to comment.