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