IntegrationApplication
classe · Source
Represents an Integration's OAuth2 Application.
Extends: Application
Properties
bot
The bot user for this application Source
termsOfServiceURL
The URL of the application's terms of service Source
privacyPolicyURL
The URL of the application's privacy policy Source
rpcOrigins
The Array of RPC origin URLs Source
summary
The application's summary Source
hook
Whether the application can be default hooked by the client Source
cover
The hash of the application's cover image Source
verifyKey
The hex-encoded key for verification in interactions and the GameSDK's GetTicket Source
id
The application's id Source
name
The name of the application Source
description
The application's description Source
icon
The application's icon hash Source
roleConnectionsVerificationURL
This application's role connection verification entry point URL Source
tags
The tags this application has (max of 5) Source
installParams
Settings for this application's default in-app authorization Source
customInstallURL
This application's custom installation URL Source
flags
The flags this application has Source
flagsNew
The complete application flags bitfield, including bits above bit 30. Discord serializes this response-only field as a string. Source
approximateGuildCount
An approximate amount of guilds this application is in. Source
guildId
The id of the guild associated with this application. Source
botRequireCodeGrant
If this application's bot requires a code grant when using the OAuth2 flow Source
botPublic
If this application's bot is public Source
owner
The owner of this OAuth application Source
splash
The application's splash image hash Source
type
The type of the application Source
primarySkuId
The ID of the application's primary SKU (game, application subscription, etc.) Source
eulaId
The ID of the application's EULA Source
slug
The URL slug that links to the primary store page of the application Source
aliases
Other names the application's game is associated with Source
executables
The unique executables of the application's game Source
thirdPartySkus
The third party SKUs of the application's game Source
overlay
Whether the application's game supports the Discord overlay (default false) Source
overlayMethods
The methods of overlaying that the application's game supports Source
overlayWarn
Whether the Discord overlay is known to be problematic with this application's game (default false) Source
overlayCompatibilityHook
Whether to use the compatibility hook for the overlay (default false) Source
developers
The companies that developed the application Source
publishers
The companies that published the application Source
redirectUris
The whitelisted URLs for redirecting to during OAuth2 authorization (max 10) Source
deeplinkUri
The URL used for deep linking during OAuth2 authorization on mobile devices Source
integrationPublic
Whether only the application owner can add the integration Source
integrationRequireCodeGrant
Whether the integration will only be added upon completion of a full OAuth2 token exchange Source
botDisabled
Whether the application's bot is disabled by Discord (default false) Source
botQuarantined
Whether the application's bot is quarantined by Discord Source
approximateUserInstallCount
Approximate count of users that have authorized the application with the applications.commands scope Source
approximateUserAuthorizationCount
Approximate count of users that have OAuth2 authorizations for the application Source
internalGuildRestriction
What guilds the application can be authorized in Source
interactionsEndpointUrl
The URL of the application's interactions endpoint Source
interactionsVersion
The version of the application's interactions endpoint implementation Source
interactionsEventTypes
The enabled event webhook types to send to the interaction endpoint Source
eventWebhooksStatus
Whether event webhooks are enabled Source
eventWebhooksUrl
The URL of the application's event webhooks endpoint Source
eventWebhooksTypes
The enabled event webhook types to send to the event webhooks endpoint Source
explicitContentFilter
Whether uploaded media content used in application commands is scanned and deleted for explicit content Source
integrationTypesConfig
The configuration for each integration type supported by the application Source
isVerified
Whether the application is verified Source
verificationState
The current verification state of the application Source
storeApplicationState
The current store approval state of the commerce application Source
rpcApplicationState
The current RPC approval state of the application Source
creatorMonetizationState
The current guild creator monetization state of the application Source
isDiscoverable
Whether the application is discoverable in the application directory Source
discoverabilityState
The current application directory discoverability state of the application Source
discoveryEligibilityFlags
The current application directory eligibility flags for the application Source
isMonetized
Whether the application has monetization enabled Source
storefrontAvailable
Whether the application has public subscriptions or products available for purchase Source
monetizationState
The current application monetization state of the application Source
monetizationEligibilityFlags
The current application monetization eligibility flags for the application Source
maxParticipants
The maximum possible participants in the application's embedded activity (-1 for no limit) Source
guild
The guild associated with this application. Source
partial
Whether this application is partial Source
createdTimestamp
The timestamp the application was created at Source
createdAt
The time the application was created at Source
client
The client that instantiated this Source
Methods
fetch
Obtains this application from Discord. Returns: Promise<Application>Source
fetchRoleConnectionMetadataRecords
Gets this application's role connection metadata records Returns: Promise<Array<ApplicationRoleConnectionMetadata>>Source
fetchActivityInstance
Fetches an activity instance for this application. Parameters
| Name | Type | Description |
|---|---|---|
instanceId | string | The activity instance id |
Returns: Promise<ActivityInstance>Source
iconURL
A link to the application's icon. Parameters
| Name | Type | Description |
|---|---|---|
options? | StaticImageURLOptions | Options for the Image URL Default: {}. |
Returns: stringSource
coverURL
A link to this application's cover image. Parameters
| Name | Type | Description |
|---|---|---|
options? | StaticImageURLOptions | Options for the Image URL Default: {}. |
Returns: stringSource
fetchAssets
Gets the application's rich presence assets. Returns: Promise<Array<ApplicationAsset>>Source
toString
When concatenated with a string, this automatically returns the application's name instead of the Application object. Returns: string
// Logs: Application name: My App
console.log(`Application name: ${application}`);