#[non_exhaustive]pub struct Application {Show 33 fields
pub id: ApplicationId,
pub name: CompactString,
pub icon: Option<ImageHash>,
pub description: CompactString,
pub rpc_origins: Vec<CompactString>,
pub bot_public: bool,
pub bot_require_code_grant: bool,
pub bot: Option<Box<User>>,
pub terms_of_service_url: Option<CompactString>,
pub privacy_policy_url: Option<CompactString>,
pub owner: Option<Box<User>>,
pub verify_key: CompactString,
pub team: Option<Box<Team>>,
pub guild_id: Option<GuildId>,
pub guild: Option<Box<PartialGuild>>,
pub primary_sku_id: Option<SkuId>,
pub slug: Option<CompactString>,
pub cover_image: Option<ImageHash>,
pub flags: Option<ApplicationFlags>,
pub flags_new: Option<ApplicationFlags>,
pub approximate_guild_count: Option<u32>,
pub approximate_user_install_count: Option<u32>,
pub approximate_user_authorization_count: Option<u32>,
pub redirect_uris: Vec<CompactString>,
pub interactions_endpoint_url: Option<CompactString>,
pub role_connections_verification_url: Option<CompactString>,
pub event_webhooks_url: Option<CompactString>,
pub event_webhooks_status: Option<EventWebhookStatus>,
pub event_webhooks_types: Vec<WebhookEventType>,
pub tags: Vec<CompactString>,
pub install_params: Option<InstallParams>,
pub integration_types_config: Option<IntegrationTypesConfig>,
pub custom_install_url: Option<CompactString>,
}Expand description
An application.
discord.js counterpart: ClientApplication / Application.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: ApplicationIdThe application’s ID.
name: CompactStringThe application’s name.
icon: Option<ImageHash>The icon hash.
description: CompactStringThe application’s description.
rpc_origins: Vec<CompactString>RPC origin URLs, if RPC is enabled.
bot_public: boolWhether anyone (not only the owner) can add the bot to guilds.
bot_require_code_grant: boolWhether the bot only joins after the full OAuth2 code grant flow.
bot: Option<Box<User>>The application’s bot user.
terms_of_service_url: Option<CompactString>The URL of the terms of service.
privacy_policy_url: Option<CompactString>The URL of the privacy policy.
owner: Option<Box<User>>The application’s owner (for team-owned apps, a team pseudo-user).
verify_key: CompactStringThe hex-encoded public key used to verify interaction requests.
team: Option<Box<Team>>The team that owns the application.
guild_id: Option<GuildId>The guild associated with the application (e.g. its support server).
guild: Option<Box<PartialGuild>>The associated guild.
primary_sku_id: Option<SkuId>For games sold on Discord, the “Game SKU”.
slug: Option<CompactString>For games sold on Discord, the URL slug of the store page.
cover_image: Option<ImageHash>The default rich presence invite cover image hash.
flags: Option<ApplicationFlags>The application’s public flags (legacy integer field).
flags_new: Option<ApplicationFlags>The application’s public flags, sent as a decimal string.
approximate_guild_count: Option<u32>The approximate number of guilds the app is in.
approximate_user_install_count: Option<u32>The approximate number of users who installed the app.
The approximate number of users with an OAuth2 authorization for the app.
redirect_uris: Vec<CompactString>The OAuth2 redirect URIs.
interactions_endpoint_url: Option<CompactString>§role_connections_verification_url: Option<CompactString>The role connection (linked roles) verification URL.
event_webhooks_url: Option<CompactString>The URL that receives webhook events.
event_webhooks_status: Option<EventWebhookStatus>Whether webhook events are enabled.
event_webhooks_types: Vec<WebhookEventType>The webhook events the app subscribes to.
Up to 5 tags describing the app.
install_params: Option<InstallParams>The settings of the app’s default in-app authorization link.
integration_types_config: Option<IntegrationTypesConfig>The default scopes and permissions per installation context.
custom_install_url: Option<CompactString>The custom authorization URL, if set.