Skip to main content

DiscordApplication

@discordeno/bot


Documentation / @discordeno/bot / DiscordApplication

Interface: DiscordApplication

Defined in: packages/types/dist/types/discord/application.d.ts:8

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

Properties

approximate_guild_count?

optional approximate_guild_count: number

Defined in: packages/types/dist/types/discord/application.d.ts:56

An approximate count of the app's guild membership.


approximate_user_install_count?

optional approximate_user_install_count: number

Defined in: packages/types/dist/types/discord/application.d.ts:58

Approximate count of users that have installed the app.


bot?

optional bot: Partial<DiscordUser>

Defined in: packages/types/dist/types/discord/application.d.ts:60

Partial user object for the bot user associated with the app


bot_public

bot_public: boolean

Defined in: packages/types/dist/types/discord/application.d.ts:32

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


bot_require_code_grant

bot_require_code_grant: boolean

Defined in: packages/types/dist/types/discord/application.d.ts:34

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


cover_image?

optional cover_image: string

Defined in: packages/types/dist/types/discord/application.d.ts:44

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


custom_install_url?

optional custom_install_url: string

Defined in: packages/types/dist/types/discord/application.d.ts:52

the application's default custom authorization link, if enabled


description

description: string

Defined in: packages/types/dist/types/discord/application.d.ts:12

The description of the app


event_webhooks_status

event_webhooks_status: DiscordApplicationEventWebhookStatus

Defined in: packages/types/dist/types/discord/application.d.ts:68

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


event_webhooks_types?

optional event_webhooks_types: DiscordWebhookEventType[]

Defined in: packages/types/dist/types/discord/application.d.ts:70

List of Webhook event types the app subscribes to


event_webhooks_url?

optional event_webhooks_url: null | string

Defined in: packages/types/dist/types/discord/application.d.ts:66

Event webhook URL for the app to receive webhook events


flags?

optional flags: ApplicationFlags

Defined in: packages/types/dist/types/discord/application.d.ts:26

The application's public flags


guild?

optional guild: Partial<DiscordGuild>

Defined in: packages/types/dist/types/discord/application.d.ts:42

A partial object of the associated guild


guild_id?

optional guild_id: string

Defined in: packages/types/dist/types/discord/application.d.ts:40

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


icon

icon: null | string

Defined in: packages/types/dist/types/discord/application.d.ts:30

The icon hash of the app


id

id: string

Defined in: packages/types/dist/types/discord/application.d.ts:28

The id of the app


install_params?

optional install_params: DiscordInstallParams

Defined in: packages/types/dist/types/discord/application.d.ts:48

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


integration_types_config?

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

Defined in: packages/types/dist/types/discord/application.d.ts:50

Default scopes and permissions for each supported installation context.


interactions_endpoint_url?

optional interactions_endpoint_url: null | string

Defined in: packages/types/dist/types/discord/application.d.ts:64

Interactions endpoint URL for the app


name

name: string

Defined in: packages/types/dist/types/discord/application.d.ts:10

The name of the app


owner?

optional owner: Partial<DiscordUser>

Defined in: packages/types/dist/types/discord/application.d.ts:36

Partial user object containing info on the owner of the application


primary_sku_id?

optional primary_sku_id: string

Defined in: packages/types/dist/types/discord/application.d.ts:22

If this application is a game sold on Discord, this field will be the id of the "Game SKU" that is created, if exists


privacy_policy_url?

optional privacy_policy_url: string

Defined in: packages/types/dist/types/discord/application.d.ts:18

The url of the app's privacy policy


redirect_uris?

optional redirect_uris: string[]

Defined in: packages/types/dist/types/discord/application.d.ts:62

Array of redirect URIs for the app


role_connections_verification_url?

optional role_connections_verification_url: null | string

Defined in: packages/types/dist/types/discord/application.d.ts:54

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


rpc_origins?

optional rpc_origins: string[]

Defined in: packages/types/dist/types/discord/application.d.ts:14

An array of rpc origin urls, if rpc is enabled


slug?

optional slug: string

Defined in: packages/types/dist/types/discord/application.d.ts:24

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


tags?

optional tags: string[]

Defined in: packages/types/dist/types/discord/application.d.ts:46

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


team

team: null | DiscordTeam

Defined in: packages/types/dist/types/discord/application.d.ts:38

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


terms_of_service_url?

optional terms_of_service_url: string

Defined in: packages/types/dist/types/discord/application.d.ts:16

The url of the app's terms of service


verify_key

verify_key: string

Defined in: packages/types/dist/types/discord/application.d.ts:20

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