ClientApplication
ClientApplication ⇐ Base
Represents a client application.
Kind: global class
Extends: Base
- ClientApplication ⇐
Base
- new ClientApplication([data], client)
- .commands ⇒
ApplicationCommandManager
- .fetch() ⇒
Promise.<Application>
- .iconURL(options) ⇒
string
|null
new ClientApplication([data], client)
Constructs a new instance of the Application class.
Param | Type | Description |
---|---|---|
[data] | Object | The data object containing information about the client application. |
client | Client | The 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.
Param | Type | Description |
---|---|---|
options | Object | An optional object containing additional options for the icon URL. |
options.dynamic | boolean | Whether the icon should be dynamically generated. |
options.size | number | The desired size of the icon. |
options.format | string | The desired format of the icon. |