Skip to main content
Version: 0.37.109

Utils

Index

Functions

isApplicationCommandDMInteraction

isApplicationCommandGuildInteraction

isChatInputApplicationCommandInteraction

isContextMenuApplicationCommandInteraction

isDMInteraction

  • 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

isGuildInteraction

  • A type-guard check for guild interactions


    Parameters

    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

    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

    Returns component is APIButtonComponentWithURL

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

isMessageComponentButtonInteraction

isMessageComponentDMInteraction

isMessageComponentGuildInteraction

isMessageComponentInteraction

  • A type-guard check for message component interactions


    Parameters

    Returns interaction is APIMessageComponentInteraction

    A boolean that indicates if the interaction is a message component

isMessageComponentSelectMenuInteraction