Class DiscordApplication
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
Represents an OAuth2 application.
public sealed class DiscordApplication : DiscordMessageApplication
- Inheritance
-
DiscordApplication
- Inherited Members
Properties
- ApproximateGuildCount
Approximate count of guilds the app has been added to
- ApproximateUserInstallCount
Approximate count of users that have installed the app
- Bot
Partial user object for the bot user associated with the app.
- CoverImageHash
Gets the hash of the application's cover image.
- CoverImageUrl
Gets this application's cover image URL.
- CustomInstallUrl
Default custom authorization URL for the app, if enabled
- Flags
Gets the application's flags.
- Guild
Partial object of the associated guild
- GuildId
Guild associated with the app. For example, a developer support server.
- Icon
Gets the application's icon.
- IconHash
Gets the application's icon hash.
- InstallParams
Settings for the app's default in-app authorization link, if enabled
- IntegrationTypeConfigurations
Default scopes and permissions for each supported installation context.
- InteractionsEndpointUrl
Interactions endpoint URL for the app
- IsPublic
Gets whether this bot application is public.
- Owners
Gets the application's owners.
- PrimarySkuId
If this app is a game sold on Discord, this field will be the id of the "Game SKU" that is created, if exists
- PrivacyPolicyUrl
Gets the application's privacy policy URL.
- RedirectUris
Array of redirect URIs for the app
- RequiresCodeGrant
Gets whether this application's bot user requires code grant.
- RoleConnectionsVerificationEndpointUrl
Interactions endpoint URL for the app
- RpcOrigins
Gets the application's allowed RPC origins.
- Slug
If this app is a game sold on Discord, this field will be the URL slug that links to the store page
- Tags
List of tags describing the content and functionality of the app. Max of 5 tags.
- Team
Gets the team which owns this application.
- TermsOfServiceUrl
Gets the application's terms of service URL.
- VerifyKey
Public key used to verify http interactions
Methods
- Equals(DiscordApplication?)
Checks whether this DiscordApplication is equal to another DiscordApplication.
- Equals(object?)
Checks whether this DiscordApplication is equal to another object.
- GenerateOAuthUri(string?, DiscordPermissions, params DiscordOAuthScope[])
Generates a new OAuth2 URI for this application.
- GetAssetsAsync(bool)
Retrieves this application's assets.
- GetAvatarUrl(ImageFormat, ushort)
Gets the application's cover image URL, in requested format and size.
- GetHashCode()
Gets the hash code for this DiscordApplication.
- ListEntitlementsAsync(ulong?, IEnumerable<ulong>?, ulong?, ulong?, int, ulong?, bool?, CancellationToken)
List all Entitlements belonging to this application.
- ListStockKeepingUnitsAsync()
List all stock keeping units belonging to this application
Operators
- operator ==(DiscordApplication, DiscordApplication)
Gets whether the two DiscordApplication objects are equal.
- operator !=(DiscordApplication, DiscordApplication)
Gets whether the two DiscordApplication objects are not equal.