Class ClientApplication

A representation of the authorized client's application (typically received via gateway).

Hierarchy

  • Base
    • ClientApplication

Constructors

Properties

flags: number

This application's flags.

id: string

Accessors

  • get createdAt(): Date
  • Returns Date

Methods

  • Delete a global application command.

    Parameters

    • commandID: string

      The ID of the command.

    Returns Promise<void>

  • Delete a guild application command.

    Parameters

    • guildID: string

      The ID of the guild.

    • commandID: string

      The ID of the command.

    Returns Promise<void>

  • Edit a guild application command's permissions. This requires a bearer token with the applications.commands.permissions.update scope.

    Parameters

    Returns Promise<RESTGuildApplicationCommandPermissions>

  • Get a global application command.

    Type Parameters

    Parameters

    Returns Promise<T>

  • Get this application's global commands.

    Parameters

    Returns Promise<AnyApplicationCommand[]>

  • Get a global application command.

    Type Parameters

    Parameters

    • guildID: string

      The ID of the guild.

    • commandID: string

      The ID of the command.

    • Optional options: GetApplicationCommandOptions

      The options for getting the command.

    Returns Promise<T>

  • Get this application's commands in a specific guild.

    Parameters

    Returns Promise<AnyApplicationCommand[]>

  • Get a command's permissions in a guild.

    Parameters

    • guildID: string

      The ID of the guild.

    • commandID: string

      The ID of the command.

    Returns Promise<RESTGuildApplicationCommandPermissions>

  • Get this application's role connection metadata records.

    Returns Promise<RoleConnectionMetadata[]>

  • Get the authenticated user's role connection object for this application. This requires the role_connections.write scope.

    Returns Promise<RoleConnection>

  • Returns string

  • Parameters

    Returns void

  • Update this application's role connections metadata.

    Parameters

    Returns Promise<RoleConnectionMetadata[]>

  • Update the authenticated user's role connection object for an application. This requires the role_connections.write scope.

    Parameters

    Returns Promise<RoleConnection>

  • Parameters

    • Optional timestamp: number | Date

    Returns string

  • Parameters

    • id: string

    Returns Date

  • Parameters

    • id: string

    Returns number

Generated using TypeDoc