Application Resource

Application Object

Application Structure
FieldTypeDescription
idsnowflakethe id of the app
namestringthe name of the app
icon?stringthe icon hash of the app
descriptionstringthe description of the app
rpc_origins?array of stringsan array of rpc origin urls, if rpc is enabled
bot_publicbooleanwhen false only app owner can join the app's bot to guilds
bot_require_code_grantbooleanwhen true the app's bot will only join upon completion of the full oauth2 code grant flow
terms_of_service_url?stringthe url of the app's terms of service
privacy_policy_url?stringthe url of the app's privacy policy
owner?partial user objectpartial user object containing info on the owner of the application
summarystringif this application is a game sold on Discord, this field will be the summary field for the store page of its primary sku
verify_keystringthe hex encoded key for verification in interactions and the GameSDK's GetTicket
team?team objectif the application belongs to a team, this will be a list of the members of that team
guild_id?snowflakeif this application is a game sold on Discord, this field will be the guild to which it has been linked
primary_sku_id?snowflakeif this application is a game sold on Discord, this field will be the id of the "Game SKU" that is created, if exists
slug?stringif this application is a game sold on Discord, this field will be the URL slug that links to the store page
cover_image?stringthe application's default rich presence invite cover image hash
flags?integerthe application's public flags
Example Application Object
json
{
"bot_public": true,
"bot_require_code_grant": false,
"cover_image": "31deabb7e45b6c8ecfef77d2f99c81a5",
"description": "Test",
"guild_id": "290926798626357260",
"icon": null,
"id": "172150183260323840",
"name": "Baba O-Riley",
"owner": {
"avatar": null,
"discriminator": "1738",
"flags": 1024,
"id": "172150183260323840",
"username": "i own a bot"
},
"primary_sku_id": "172150183260323840",
"slug": "test",
"summary": "This is a game",
"team": {
"icon": "dd9b7dcfdf5351b9c3de0fe167bacbe1",
"id": "531992624043786253",
"members": [
{
"membership_state": 2,
"permissions": ["*"],
"team_id": "531992624043786253",
"user": {
"avatar": "d9e261cd35999608eb7e3de1fae3688b",
"discriminator": "0001",
"id": "511972282709709995",
"username": "Mr Owner"
}
}
]
},
"verify_key": "1e0a356058d627ca38a5c8c9648818061d49e49bd9da9e3ab17d98ad4d6bg2u8"
}
Application Flags
ValueFlag
1 << 12GATEWAY_PRESENCE
1 << 13GATEWAY_PRESENCE_LIMITED
1 << 14GATEWAY_GUILD_MEMBERS
1 << 15GATEWAY_GUILD_MEMBERS_LIMITED
1 << 16VERIFICATION_PENDING_GUILD_LIMIT
1 << 17EMBEDDED