Class ClientApplication

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

Hierarchy (view full)

Constructors

Properties

The entitlements for this application. This will almost certainly be empty unless you fetch entitlements, or recieve new/updated entitlements.

flags: number

This application's flags.

Deprecated

See flagsNew. This will likely be made a bigint in the future.

flagsNew: bigint

This application's flags.

id: string

The subscriptions for this application. This will almost certainly be empty unless you fetch subscriptions, or recieve new/updated subscriptions.

Accessors

Methods

  • Upload an ephemeral attachment for this application. The application must have Activities enabled (the EMBEDDED application flag). Applications without Activities enabled currently return an "Unknown Application" error. This endpoint requires a user OAuth2 bearer token; client credentials grant tokens are not valid and currently produce a 500 error.

    Parameters

    Returns Promise<Attachment>

    Caching

    This method does not cache its result.