Utils
Index
Functions
- isApplicationCommandDMInteraction
- isApplicationCommandGuildInteraction
- isChatInputApplicationCommandInteraction
- isContextMenuApplicationCommandInteraction
- isDMInteraction
- isGuildInteraction
- isInteractionButton
- isLinkButton
- isMessageComponentButtonInteraction
- isMessageComponentDMInteraction
- isMessageComponentGuildInteraction
- isMessageComponentInteraction
- isMessageComponentSelectMenuInteraction
Functions
isApplicationCommandDMInteraction
Parameters
interaction: APIApplicationCommandInteraction
The application command interaction to check against
Returns interaction is APIApplicationCommandDMInteraction
A boolean that indicates if the application command interaction was received in a DM channel
isApplicationCommandGuildInteraction
A type-guard check for guild application command interactions
Parameters
interaction: APIApplicationCommandInteraction
The interaction to check against
Returns interaction is APIApplicationCommandGuildInteraction
A boolean that indicates if the application command interaction was received in a guild
isChatInputApplicationCommandInteraction
A type-guard check for chat input application commands.
Parameters
interaction: APIApplicationCommandInteraction
The interaction to check against
Returns interaction is APIChatInputApplicationCommandInteraction
A boolean that indicates if the interaction is a chat input application command
isContextMenuApplicationCommandInteraction
A type-guard check for context menu application commands.
Parameters
interaction: APIApplicationCommandInteraction
The interaction to check against
Returns interaction is APIContextMenuInteraction
A boolean that indicates if the interaction is a context menu application command
isDMInteraction
A type-guard check for DM interactions
Parameters
interaction: APIInteraction
The interaction to check against
Returns interaction is APIDMInteraction
A boolean that indicates if the interaction was received in a DM channel
isGuildInteraction
A type-guard check for guild interactions
Parameters
interaction: APIInteraction
The interaction to check against
Returns interaction is APIGuildInteraction
A boolean that indicates if the interaction was received in a guild
isInteractionButton
A type-guard check for buttons that have a
custom_id
attached to them.Parameters
component: APIButtonComponent
The button to check against
Returns component is APIButtonComponentWithCustomId
A boolean that indicates if the button has a
custom_id
attached to it
isLinkButton
A type-guard check for buttons that have a
url
attached to them.Parameters
component: APIButtonComponent
The button to check against
Returns component is APIButtonComponentWithURL
A boolean that indicates if the button has a
url
attached to it
isMessageComponentButtonInteraction
A type-guard check for button message component interactions
Parameters
interaction: APIMessageComponentInteraction
The message component interaction to check against
Returns interaction is APIMessageComponentButtonInteraction
A boolean that indicates if the message component is a button
isMessageComponentDMInteraction
A type-guard check for DM message component interactions
Parameters
interaction: APIMessageComponentInteraction
The message component interaction to check against
Returns interaction is APIMessageComponentDMInteraction
A boolean that indicates if the message component interaction was received in a DM channel
isMessageComponentGuildInteraction
A type-guard check for guild message component interactions
Parameters
interaction: APIMessageComponentInteraction
The interaction to check against
Returns interaction is APIMessageComponentGuildInteraction
A boolean that indicates if the message component interaction was received in a guild
isMessageComponentInteraction
A type-guard check for message component interactions
Parameters
interaction: APIInteraction
The interaction to check against
Returns interaction is APIMessageComponentInteraction
A boolean that indicates if the interaction is a message component
isMessageComponentSelectMenuInteraction
A type-guard check for select menu message component interactions
Parameters
interaction: APIMessageComponentInteraction
The message component interaction to check against
Returns interaction is APIMessageComponentSelectMenuInteraction
A boolean that indicates if the message component is a select menu
A type-guard check for DM application command interactions