Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Utils

Index

Functions

  • A type-guard check for DM application command interactions

    Parameters

    Returns interaction is APIApplicationCommandDMInteraction

    A boolean that indicates if the application command interaction was received in a DM channel

  • A type-guard check for guild application command interactions

    Parameters

    Returns interaction is APIApplicationCommandGuildInteraction

    A boolean that indicates if the application command interaction was received in a guild

  • A type-guard check for context menu application commands.

    Parameters

    Returns interaction is APIContextMenuInteraction

    A boolean that indicates if the interaction is a context menu application command

  • A type-guard check for DM interactions

    Parameters

    Returns interaction is APIDMInteraction

    A boolean that indicates if the interaction was received in a DM channel

  • A type-guard check for guild interactions

    Parameters

    Returns interaction is APIGuildInteraction

    A boolean that indicates if the interaction was received in a guild

  • A type-guard check for buttons that have a custom_id attached to them.

    Parameters

    Returns component is APIButtonComponentWithCustomId

    A boolean that indicates if the button has a custom_id attached to it

  • A type-guard check for buttons that have a url attached to them.

    Parameters

    Returns component is APIButtonComponentWithURL

    A boolean that indicates if the button has a url attached to it

  • A type-guard check for button message component interactions

    Parameters

    Returns interaction is APIMessageComponentButtonInteraction

    A boolean that indicates if the message component is a button

  • A type-guard check for DM message component interactions

    Parameters

    Returns interaction is APIMessageComponentDMInteraction

    A boolean that indicates if the message component interaction was received in a DM channel

  • A type-guard check for guild message component interactions

    Parameters

    Returns interaction is APIMessageComponentGuildInteraction

    A boolean that indicates if the message component interaction was received in a guild

  • A type-guard check for message component interactions

    Parameters

    Returns interaction is APIMessageComponentInteraction

    A boolean that indicates if the interaction is a message component

  • A type-guard check for select menu message component interactions

    Parameters

    Returns interaction is APIMessageComponentSelectMenuInteraction

    A boolean that indicates if the message component is a select menu

Generated using TypeDoc version 0.22.16, the 9/16/2022 at 1:09:14 AM