Skip to main content

DiscordApplication

@discordeno/botDocs


Documentation / @discordeno/bot / DiscordApplication

Interface: DiscordApplication

https://discord.com/developers/docs/resources/application#application-object

Properties

approximate_guild_count?

optional approximate_guild_count: number

An approximate count of the app's guild membership.

Defined in

packages/types/dist/types/discord.d.ts:341


approximate_user_install_count?

optional approximate_user_install_count: number

Approximate count of users that have installed the app.

Defined in

packages/types/dist/types/discord.d.ts:343


bot?

optional bot: Partial<DiscordUser>

Partial user object for the bot user associated with the app

Defined in

packages/types/dist/types/discord.d.ts:345


bot_public

bot_public: boolean

When false only app owner can join the app's bot to guilds

Defined in

packages/types/dist/types/discord.d.ts:317


bot_require_code_grant

bot_require_code_grant: boolean

When true the app's bot will only join upon completion of the full oauth2 code grant flow

Defined in

packages/types/dist/types/discord.d.ts:319


cover_image?

optional cover_image: string

If this application is a game sold on Discord, this field will be the hash of the image on store embeds

Defined in

packages/types/dist/types/discord.d.ts:329


custom_install_url?

optional custom_install_url: string

the application's default custom authorization link, if enabled

Defined in

packages/types/dist/types/discord.d.ts:337


description

description: string

The description of the app

Defined in

packages/types/dist/types/discord.d.ts:297


event_webhooks_status

event_webhooks_status: DiscordApplicationEventWebhookStatus

If webhook events are enabled for the app. 1 to disable, and 2 to enable.

Defined in

packages/types/dist/types/discord.d.ts:353


event_webhooks_types?

optional event_webhooks_types: DiscordWebhookEventType[]

List of Webhook event types the app subscribes to

Defined in

packages/types/dist/types/discord.d.ts:355


event_webhooks_url?

optional event_webhooks_url: null | string

Event webhook URL for the app to receive webhook events

Defined in

packages/types/dist/types/discord.d.ts:351


flags?

optional flags: ApplicationFlags

The application's public flags

Defined in

packages/types/dist/types/discord.d.ts:311


guild?

optional guild: Partial<DiscordGuild>

A partial object of the associated guild

Defined in

packages/types/dist/types/discord.d.ts:327


guild_id?

optional guild_id: string

Guild associated with the app. For example, a developer support server.

Defined in

packages/types/dist/types/discord.d.ts:325


icon

icon: null | string

The icon hash of the app

Defined in

packages/types/dist/types/discord.d.ts:315


id

id: string

The id of the app

Defined in

packages/types/dist/types/discord.d.ts:313


install_params?

optional install_params: DiscordInstallParams

settings for the application's default in-app authorization link, if enabled

Defined in

packages/types/dist/types/discord.d.ts:333


integration_types_config?

optional integration_types_config: Partial<Record<"0" | "1", DiscordApplicationIntegrationTypeConfiguration>>

Default scopes and permissions for each supported installation context.

Defined in

packages/types/dist/types/discord.d.ts:335


interactions_endpoint_url?

optional interactions_endpoint_url: null | string

Interactions endpoint URL for the app

Defined in

packages/types/dist/types/discord.d.ts:349


name

name: string

The name of the app

Defined in

packages/types/dist/types/discord.d.ts:295


owner?

optional owner: Partial<DiscordUser>

Partial user object containing info on the owner of the application

Defined in

packages/types/dist/types/discord.d.ts:321


primary_sku_id?

optional primary_sku_id: 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

Defined in

packages/types/dist/types/discord.d.ts:307


privacy_policy_url?

optional privacy_policy_url: string

The url of the app's privacy policy

Defined in

packages/types/dist/types/discord.d.ts:303


redirect_uris?

optional redirect_uris: string[]

Array of redirect URIs for the app

Defined in

packages/types/dist/types/discord.d.ts:347


role_connections_verification_url?

optional role_connections_verification_url: null | 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

Defined in

packages/types/dist/types/discord.d.ts:339


rpc_origins?

optional rpc_origins: string[]

An array of rpc origin urls, if rpc is enabled

Defined in

packages/types/dist/types/discord.d.ts:299


slug?

optional slug: string

If this application is a game sold on Discord, this field will be the URL slug that links to the store page

Defined in

packages/types/dist/types/discord.d.ts:309


tags?

optional tags: string[]

up to 5 tags describing the content and functionality of the application

Defined in

packages/types/dist/types/discord.d.ts:331


team

team: null | DiscordTeam

If the application belongs to a team, this will be a list of the members of that team

Defined in

packages/types/dist/types/discord.d.ts:323


terms_of_service_url?

optional terms_of_service_url: string

The url of the app's terms of service

Defined in

packages/types/dist/types/discord.d.ts:301


verify_key

verify_key: string

The hex encoded key for verification in interactions and the GameSDK's GetTicket

Defined in

packages/types/dist/types/discord.d.ts:305