Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InteractionMethods

Methods for interacting with slash command specific endpoints

Hierarchy

  • InteractionMethods

Index

Constructors

  • Create a new Interaction Method Handler

    Usually SnowTransfer creates a method handler for you, this is here for completion

    You can access the methods listed via client.interaction.method, where client is an initialized SnowTransfer instance

    Parameters

    Returns <internal>.InteractionMethods

Properties

requestHandler: <internal>.RequestHandler

Methods

  • Create a followup message for an Interaction

    Parameters

    Returns Promise<<internal>.Message>

    A message object

  • Create a response to an Interaction

    Parameters

    Returns Promise<void>

    Resolves the Promise on successful execution

  • deleteApplicationCommand(appId: string, cmdId: string): Promise<void>
  • Deletes a global command

    Parameters

    • appId: string

      The Id of the application

    • cmdId: string

      The Id of the command

    Returns Promise<void>

    Resolves the Promise on successful execution

  • deleteFollowupMessage(appId: string, token: string, messageId: string): Promise<void>
  • Deletes a followup message for an Interaction

    Parameters

    • appId: string

      The Id of the application

    • token: string

      The token of the interaction

    • messageId: string

      The Id of the message

    Returns Promise<void>

    Resolves the Promise on successful execution

  • deleteGuildApplicationCommand(appId: string, guildId: string, cmdId: string): Promise<void>
  • Delete a guild command

    Parameters

    • appId: string

      The Id of the application

    • guildId: string

      The Id of the guild

    • cmdId: string

      The Id of the command

    Returns Promise<void>

    Resolves the Promise on successful execution

  • deleteOriginalInteractionResponse(appId: string, token: string): Promise<void>
  • Deletes the initial Interaction response

    Parameters

    • appId: string

      The Id of the application

    • token: string

      The token of the interaction

    Returns Promise<void>

    Resolves the Promise on successful execution

  • Edits a followup message for an Interaction

    Parameters

    • appId: string

      The Id of the application

    • token: string

      The token of the interaction

    • messageId: string

      The Id of the message

    • data: <internal>.WebhookEditMessageData

      The new message data

    Returns Promise<<internal>.Message>

    A message object

  • Get a followup message for an Interaction

    Parameters

    • appId: string

      The Id of the application

    • token: string

      The token of the interaction

    • messageId: string

      The Id of the message

    Returns Promise<<internal>.Message>

    A message object

  • Returns the initial Interaction response

    Parameters

    • appId: string

      The Id of the application

    • token: string

      The token of the interaction

    Returns Promise<<internal>.Message>

    A message object

Generated using TypeDoc