Class REST/Applications

Various methods for interacting with application commands. Located at Client#rest.applications.

Constructors

Methods

  • Mark an entitlement as consumed.

    Parameters

    • applicationID: string

      The ID of the application to the entitlement is for.

    • entitlementID: string

      The ID of the entitlement to consume.

    Returns Promise<void>

  • Delete an emoji for an application.

    Parameters

    • applicationID: string

      The ID of the application.

    • emojiID: string

      The ID of the emoji to be deleted.

    Returns Promise<void>

    Caching

    This method does not cache its result.

  • Delete a global application command.

    Parameters

    • applicationID: string

      The ID of the application.

    • commandID: string

      The ID the command to delete.

    Returns Promise<void>

    Caching

    This method does not cache its result.

  • Delete a guild application command.

    Parameters

    • applicationID: string

      The ID of the application.

    • guildID: string

      The ID of the guild.

    • commandID: string

      The ID of the command to delete.

    Returns Promise<void>

    Caching

    This method does not cache its result.

  • Delete an entitlement.

    Parameters

    • applicationID: string

      The ID of the application to delete the entitlement from.

    • entitlementID: string

      The ID of the entitlement to delete.

    Returns Promise<void>