IClientOAuth2Application class abstract

The client's OAuth2 app, if the client is a bot.

Implemented types

Constructors

IClientOAuth2Application()

Properties

client INyxx
Reference to INyxx.
read-onlyinherited
coverImage String?
The app's cover hash.
read-onlyinherited
createdAt DateTime
Gets creation timestamp included in Snowflake
read-onlyinherited
description String
The app's description.
read-onlyinherited
flags → IApplicationFlags?
The app's flags.
read-only
guildId Snowflake?
If this application is a game sold on Discord, this field will be the guild to which it has been linked.
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
icon String?
The app's icon hash.
read-onlyinherited
id Snowflake
ID of entity as Snowflake
finalinherited
isPublic bool
When false only app owner can join the app's bot to guilds.
read-only
name String
The app's name.
read-onlyinherited
owner IUser
The app's owner.
read-only
primarySkuId Snowflake?
If this application is a game sold on Discord, this field will be the id of the "Game SKU" that is created, if exists.
read-onlyinherited
privacyPolicyUrl String?
The url of the app's privacy policy.
read-onlyinherited
requireCodeGrant bool
When true the app's bot will only join upon completion of the full oauth2 code grant flow.
read-only
rpcOrigins List<String>?
The app's RPC origins.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
slug String?
If this application is a game sold on Discord, this field will be the URL slug that links to the store page.
read-onlyinherited
team IAppTeam?
If the application belongs to a team, this will be a list of the members of that team.
read-onlyinherited
termsOfServiceUrl String?
The url of the app's terms of service.
read-onlyinherited
verifyKey String
The hex encoded key for verification in interactions and the GameSDK's GetTicket
read-onlyinherited

Methods

coverImageUrl({String format = 'webp', int? size}) String?
Returns the cover image URL of the app.
inherited
getInviteUrl([int? permissions]) String
Creates an OAuth2 URL with the specified permissions.
iconUrl({String format = 'webp', int? size}) String?
Returns URL to app's icon.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator.
inherited