Skip to content

ClientApplication

ClientApplication ⇐ Base

Represents a client application.

Kind: global class
Extends: Base

new ClientApplication([data], client)

Constructs a new instance of the Application class.

ParamTypeDescription
[data]ObjectThe data object containing information about the client application.
clientClientThe client object associated with the application.

clientApplication.commands ⇒ ApplicationCommandManager

Get the commands for the application.

Kind: instance property of ClientApplication
Returns: ApplicationCommandManager - - The application command manager.

clientApplication.fetch() ⇒ Promise.<Application>

Fetches the application information for the authenticated user.

Kind: instance method of ClientApplication
Returns: Promise.<Application> - A promise that resolves to the application object.

clientApplication.iconURL(options) ⇒ string | null

Returns the URL of the icon for this application.

Kind: instance method of ClientApplication
Returns: string | null - The URL of the icon, or null if no icon is available.

ParamTypeDescription
optionsObjectAn optional object containing additional options for the icon URL.
options.dynamicbooleanWhether the icon should be dynamically generated.
options.sizenumberThe desired size of the icon.
options.formatstringThe desired format of the icon.