Table of Contents

Class DiscordApplication

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents an OAuth2 application.

public sealed class DiscordApplication : DiscordMessageApplication, IEquatable<DiscordApplication>
Inheritance
DiscordApplication
Implements
Inherited Members

Properties

ApproximateGuildCount

Gets the approximate guild count

ApproximateUserInstallCount

Gets the approximate user install count

CoverImageHash

Gets the hash of the application's cover image.

CoverImageUrl

Gets this application's cover image URL.

CustomInstallUrl

A custom url for the Add To Server button.

DiscoverabilityState

Gets the discoverability state.

DiscoveryEligibilityFlags

Gets the discovery eligibility flags.

ExplicitContentFilter

Gets the explicit content filter level.

Flags

Gets the application's flags.

Guild

Gets the partial guild if set as support server.

GuildId

If this application is a game sold on Discord, this field will be the guild to which it has been linked

Icon

Gets the application's icon.

IconHash

Gets the application's icon hash.

InstallParams

Install parameters for adding the application to a guild.

IntegrationPublic

Gets whether the integration is public.

IntegrationRequireCodeGrant

Gets whether the integration requires code grant.

IntegrationTypesConfig

Gets the integration types config.

InteractionsEndpointUrl

Gets the interactions endpoint url.

InteractionsEventTypes

Gets the interaction event types.

InteractionsVersion

Gets the interactions version.

InternalGuildRestriction

Gets the internal guild restriction level.

IsHook

Whether the application is hooked.

IsMonetized

Gets whether the application is monetized.

IsPublic

Gets whether this bot application is public.

IsVerified

Gets whether the application is verified.

Members

Gets the application's team members.

MonetizationEligibilityFlags

Gets the monetization eligibility flags.

MonetizationState

Gets the monetization state.

Owner

Gets the application's owner.

PrimarySkuId

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

PrivacyPolicyUrl

Gets the privacy policy url of the application.

RedirectUris

Gets the redirect uris.

RequiresCodeGrant

Gets whether this application's bot user requires code grant.

RoleConnectionsVerificationUrl

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.

RpcApplicationState

Gets the RPC application state.

RpcOrigins

Gets the application's allowed RPC origins.

Slug

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

StoreApplicationState

Gets the store application state.

StorefrontAvailable

Gets whether the storefront is available.

Summary

Gets the application's summary.

Tags

The application tags. Not used atm.

Team

Gets the team which owns this application.

TeamName

Gets the team name of the application.

TermsOfServiceUrl

Gets the terms of service url of the application.

Type

Gets the application type. Mostly null.

VerificationEligibilityFlags

Gets the verification eligibility flags.

VerificationState

Gets the verification state.

VerifyKey

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

Methods

Equals(DiscordApplication)

Checks whether this DiscordApplication is equal to another DiscordApplication.

Equals(object)

Checks whether this DiscordApplication is equal to another object.

GenerateBotOAuth(Permissions)

Generates an oauth url for the application.

GetAssetsAsync()

Retrieves this application's assets.

GetAvatarUrl(MediaFormat, ushort)

Gets the application's cover image URL, in requested format and size.

GetHashCode()

Gets the hash code for this DiscordApplication.

Operators

operator ==(DiscordApplication, DiscordApplication)

Gets whether the two DiscordApplication objects are equal.

operator !=(DiscordApplication, DiscordApplication)

Gets whether the two DiscordApplication objects are not equal.