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.
Properties
Section titled “Properties”bot_public?
Section titled “bot_public?”
optionalbot_public?:boolean
Defined in: bot/bot.type.ts:581
Whether anyone can add the bot (true) or only its owner.
bot_require_code_grant?
Section titled “bot_require_code_grant?”
optionalbot_require_code_grant?:boolean
Defined in: bot/bot.type.ts:583
Whether the bot is only added after the full OAuth2 code grant.
custom_install_url?
Section titled “custom_install_url?”
optionalcustom_install_url?:string|null
Defined in: bot/bot.type.ts:571
Used instead of the default install link when set.
description?
Section titled “description?”
optionaldescription?:string|null
Defined in: bot/bot.type.ts:565
The description shown on the application’s page.
flags?
Section titled “flags?”
optionalflags?: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.
install_params?
Section titled “install_params?”
optionalinstall_params?:DiscordInstallParams
Defined in: bot/bot.type.ts:569
The default install link’s scopes and permissions.
interactions_endpoint_url?
Section titled “interactions_endpoint_url?”
optionalinteractions_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.
privacy_policy_url?
Section titled “privacy_policy_url?”
optionalprivacy_policy_url?:string|null
Defined in: bot/bot.type.ts:577
URL of the application’s privacy policy.
redirect_uris?
Section titled “redirect_uris?”
optionalredirect_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).
role_connections_verification_url?
Section titled “role_connections_verification_url?”
optionalrole_connections_verification_url?:string|null
Defined in: bot/bot.type.ts:573
URL Discord uses for linked-role verification.
optionaltags?:string[]
Defined in: bot/bot.type.ts:567
Up to five short labels shown on the application’s page.
terms_of_service_url?
Section titled “terms_of_service_url?”
optionalterms_of_service_url?:string|null
Defined in: bot/bot.type.ts:575
URL of the application’s terms of service.