Skip to content

DiscordApplication

Defined in: bot/bot.type.ts:559

The bot’s own application, as GET /applications/@me returns it. Fields Discord leaves out are absent or null.

optional bot_public?: boolean

Defined in: bot/bot.type.ts:581

Whether anyone can add the bot (true) or only its owner.


optional bot_require_code_grant?: boolean

Defined in: bot/bot.type.ts:583

Whether the bot is only added after the full OAuth2 code grant.


optional custom_install_url?: string | null

Defined in: bot/bot.type.ts:571

Used instead of the default install link when set.


optional description?: string | null

Defined in: bot/bot.type.ts:565

The description shown on the application’s page.


optional flags?: number

Defined in: bot/bot.type.ts:585

The application flags bitfield; see ApplicationFlag.


id: string

Defined in: bot/bot.type.ts:561

The application id.


optional install_params?: DiscordInstallParams

Defined in: bot/bot.type.ts:569

The default install link’s scopes and permissions.


optional interactions_endpoint_url?: string | null

Defined in: bot/bot.type.ts:579

URL Discord sends interaction events to.


name: string

Defined in: bot/bot.type.ts:563

The application name.


optional privacy_policy_url?: string | null

Defined in: bot/bot.type.ts:577

URL of the application’s privacy policy.


optional redirect_uris?: string[]

Defined in: bot/bot.type.ts:590

The OAuth2 redirect URIs registered on the application. Read-only here: Discord accepts a write to this field and silently ignores it, so add them in the developer portal (OAuth2 → Redirects).


optional role_connections_verification_url?: string | null

Defined in: bot/bot.type.ts:573

URL Discord uses for linked-role verification.


optional tags?: string[]

Defined in: bot/bot.type.ts:567

Up to five short labels shown on the application’s page.


optional terms_of_service_url?: string | null

Defined in: bot/bot.type.ts:575

URL of the application’s terms of service.