pub struct Application {Show 20 fields
pub id: Snowflake,
pub name: String,
pub icon: Option<String>,
pub description: String,
pub rpc_origins: Option<Vec<String>>,
pub bot_public: bool,
pub bot_require_code_grant: bool,
pub terms_of_service_url: Option<String>,
pub privacy_policy_url: Option<String>,
pub owner: Option<User>,
pub verify_key: String,
pub guild_id: Option<Snowflake>,
pub primary_sku_id: Option<Snowflake>,
pub slug: Option<String>,
pub cover_image: Option<String>,
pub flags: Option<ApplicationFlags>,
pub tags: Option<Vec<String>>,
pub install_params: Option<InstallParams>,
pub custom_install_url: Option<String>,
pub role_connections_verification_url: Option<String>,
}
Expand description
Fields§
§id: Snowflake
the id of the app
name: String
the name of the app
icon: Option<String>
the icon hash of the app
description: String
the description of the app
rpc_origins: Option<Vec<String>>
an array of rpc origin urls, if rpc is enabled
bot_public: bool
when false only app owner can join the app’s bot to guilds
bot_require_code_grant: bool
when true the app’s bot will only join upon completion of the full oauth2 code grant flow
terms_of_service_url: Option<String>
the url of the app’s terms of service
privacy_policy_url: Option<String>
the url of the app’s privacy policy
owner: Option<User>
partial user object containing info on the owner of the application
verify_key: String
the hex encoded key for verification in interactions and the GameSDK’s GetTicket
guild_id: Option<Snowflake>
if this application is a game sold on Discord, this field will be the guild to which it has been linked
primary_sku_id: Option<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
slug: Option<String>
if this application is a game sold on Discord, this field will be the URL slug that links to the store page
cover_image: Option<String>
the application’s default rich presence invite cover image hash
flags: Option<ApplicationFlags>
the application’s public flags
up to 5 tags describing the content and functionality of the application
install_params: Option<InstallParams>
settings for the application’s default in-app authorization link, if enabled
custom_install_url: Option<String>
the application’s default custom authorization link, if enabled
role_connections_verification_url: Option<String>
the application’s role connection verification entry point, which when configured will render the app as a verification method in the guild role verification configuration