Application class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

Application({required String id, required String name, String? icon, required String description, List<String>? rpcOrigins, required bool botPublic, required bool botRequireCodeGrant, String? termsOfServiceUrl, String? privacyPolicyUrl, User? owner, required String summary, required String verifyKey, Team? team, String? guildId, String? primarySkuId, String? slug, String? coverImage, List<ApplicationFlag>? flags})
Constructor
Application.fromJson(Map<String, dynamic> json)
From 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 List<ApplicationFlag>?
the application's public flags
final
guildId String?
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 String
the id of the app
final
name String
the name of the app
final
owner User?
partial user object containing info on the owner of the application
final
primarySkuId String?
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 Team?
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
toJson() Map<String, dynamic>
To json
toString() String
A string representation of this object.
inherited

Operators

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