DiscordApplication class
Constructors
-
DiscordApplication({required DiscordSnowflake id, required String name, String? icon, required String description, List<
String> ? rpcOrigins, required bool botPublic, required bool botRequireCodeGrant, String? termsOfServiceUrl, String? privacyPolicyUrl, DiscordUser? owner, required String summary, required String verifyKey, DiscordTeam? team, DiscordSnowflake? guildId, DiscordSnowflake? primarySkuId, String? slug, String? coverImage, int? flags}) -
DiscordApplication.fromJson(Map<
String, dynamic> json) -
factory
Properties
- botPublic → bool
-
when false only app owner can join the app's bot to guilds
final
- botRequireCodeGrant → bool
-
when true the app's bot will only join upon completion of the full oauth2
code grant flow
final
- coverImage → String?
-
the application's default rich presence invite cover image hash
final
- description → String
-
the description of the app
final
- flags → int?
-
the application's public flags
final
-
flagsAsEnum
→ List<
DiscordApplicationFlag> -
no setter
- guildId → DiscordSnowflake?
-
if this application is a game sold on Discord, this field
will be the guild to which it has been linked
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → String?
-
the icon hash of the app
final
- id → DiscordSnowflake
-
the id of the app
final
- name → String
-
the name of the app
final
- owner → DiscordUser?
-
partial user object containing info on the owner of the application
final
- primarySkuId → DiscordSnowflake?
-
if this application is a game sold on Discord, this field
will be the id of the "Game SKU" that is created, if exists
final
- privacyPolicyUrl → String?
-
the url of the app's privacy policy
final
-
rpcOrigins
→ List<
String> ? -
an array of rpc origin urls, if rpc is enabled
final
- 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
final
- summary → String
-
if this application is a game sold on Discord,
this field will be the summary field for the store page of its primary sku
final
- team → DiscordTeam?
-
if the application belongs to a team, this will be a list of the members of that team
final
- termsOfServiceUrl → String?
-
the url of the app's terms of service
final
- verifyKey → String
-
the hex encoded key for verification in interactions and the
GameSDK's GetTicket
final
Methods
-
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 ==(
Object other) → bool -
The equality operator.
inherited
Constants
- botPublicEntry → const String
- botRequireCodeGrantEntry → const String
- coverImageEntry → const String
- descriptionEntry → const String
- flagsEntry → const String
- guildIdEntry → const String
- iconEntry → const String
- idEntry → const String
- nameEntry → const String
- ownerEntry → const String
- primarySkuIdEntry → const String
- privacyPolicyUrlEntry → const String
- rpcOriginsEntry → const String
- slugEntry → const String
- summaryEntry → const String
- teamEntry → const String
- termsOfServiceUrlEntry → const String
- verifyKeyEntry → const String