OAuthApplication
class OAuthApplication extends ClientBase (View source)
Represents an OAuth Application.
Properties
Client | $client | The client which initiated the instance. | from ClientBase |
static Client|null | $serializeClient | The client which will be used to unserialize. | from ClientBase |
string | $id | The application ID. | |
string | $name | The name of the application. | |
string|null | $icon | The hash of the application hash, or null. | |
string|null | $description | The application's description, or null. | |
string[]|null | $rpcOrigins | An array of RPC origin url strings, if RPC is enabled, or null. | |
bool | $botPublic | Whether the bot is public. | |
bool | $botRequireCodeGrant | Whether the bot requires a code grant (full OAuth flow). | |
User|null | $owner | The User instance of the owner, or null. |
Methods
mixed
__get(string $name)
No description
string|null
getIconURL(int|null $size = null, string $format = 'png')
Returns the application's icon URL, or null.
string
__toString()
Automatically converts to the application name.
Details
at line 95
mixed
__get(string $name)
in ClientBase at line 67
mixed
jsonSerialize()
in ClientBase at line 78
string
serialize()
in ClientBase at line 89
void
unserialize($data)
in ClientBase at line 56
mixed
__debugInfo()
at line 109
string|null
getIconURL(int|null $size = null, string $format = 'png')
Returns the application's icon URL, or null.
at line 121
string
__toString()
Automatically converts to the application name.