Table of Contents

Class RestApplication

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll

Represents a REST-based entity that contains information about a Discord application created via the developer portal.

public class RestApplication : RestEntity<ulong>, IApplication, ISnowflakeEntity, IEntity<ulong>
Inheritance
RestApplication
Implements
Inherited Members

Fields

_iconId

protected string _iconId

Field Value

string

Properties

ApproximateGuildCount

Gets the approximate count of the guild the application was added to. null if not returned.

public int? ApproximateGuildCount { get; }

Property Value

int?

ApproximateUserInstallCount

Gets the approximate count of the users the application was added to. null if not returned.

public int? ApproximateUserInstallCount { get; }

Property Value

int?

BotRequiresCodeGrant

Gets if the bot requires code grant. null if not set.

public bool? BotRequiresCodeGrant { get; }

Property Value

bool?

CreatedAt

Gets when the snowflake was created.

public DateTimeOffset CreatedAt { get; }

Property Value

DateTimeOffset

A DateTimeOffset representing when the entity was first created.

CustomInstallUrl

Gets application's default custom authorization url. null if disabled.

public string CustomInstallUrl { get; }

Property Value

string

Description

Gets the description of the application.

public string Description { get; }

Property Value

string

DiscoverabilityState

Gets the application's discoverability state.

public ApplicationDiscoverabilityState DiscoverabilityState { get; }

Property Value

ApplicationDiscoverabilityState

DiscoveryEligibilityFlags

Gets the application's discovery eligibility flags.

public DiscoveryEligibilityFlags DiscoveryEligibilityFlags { get; }

Property Value

DiscoveryEligibilityFlags

ExplicitContentFilterLevel

Gets the application's explicit content filter level for uploaded media content used in application commands.

public ApplicationExplicitContentFilterLevel ExplicitContentFilterLevel { get; }

Property Value

ApplicationExplicitContentFilterLevel

Flags

Gets the application's public flags.

public ApplicationFlags Flags { get; }

Property Value

ApplicationFlags

Guild

Gets the partial guild object of the application's developer's support server. null if not set.

public PartialGuild Guild { get; }

Property Value

PartialGuild

IconUrl

Gets the icon URL of the application.

public string IconUrl { get; }

Property Value

string

InstallParams

Gets a collection of install parameters for this application; null if disabled.

public ApplicationInstallParams InstallParams { get; }

Property Value

ApplicationInstallParams

IntegrationTypesConfig

Gets application install params configured for integration install types.

public IReadOnlyDictionary<ApplicationIntegrationType, ApplicationInstallParams> IntegrationTypesConfig { get; }

Property Value

IReadOnlyDictionary<ApplicationIntegrationType, ApplicationInstallParams>

InteractionEventTypes

Gets event types to be sent to the interaction endpoint.

public IReadOnlyCollection<string> InteractionEventTypes { get; }

Property Value

IReadOnlyCollection<string>

InteractionsEndpointUrl

Gets application's interactions endpoint url. null if not set.

public string InteractionsEndpointUrl { get; }

Property Value

string

InteractionsVersion

Gets the interactions version application uses.

public ApplicationInteractionsVersion InteractionsVersion { get; }

Property Value

ApplicationInteractionsVersion

IsBotPublic

Gets if the bot is public. null if not set.

public bool? IsBotPublic { get; }

Property Value

bool?

IsHook

Gets whether the bot is allowed to hook into the application's game directly.

public bool IsHook { get; }

Property Value

bool

IsMonetized

Whether the application has premium subscriptions.

public bool IsMonetized { get; }

Property Value

bool

MonetizationEligibilityFlags

Gets the application's monetization eligibility flags.

public ApplicationMonetizationEligibilityFlags MonetizationEligibilityFlags { get; }

Property Value

ApplicationMonetizationEligibilityFlags

MonetizationState

Gets the application's monetization state.

public ApplicationMonetizationState MonetizationState { get; }

Property Value

ApplicationMonetizationState

Name

Gets the name of the application.

public string Name { get; }

Property Value

string

Owner

Gets the partial user object containing info on the owner of the application.

public IUser Owner { get; }

Property Value

IUser

PrivacyPolicy

Gets the the url of the app's privacy policy.

public string PrivacyPolicy { get; }

Property Value

string

RPCOrigins

Gets the RPC origins of the application.

public IReadOnlyCollection<string> RPCOrigins { get; }

Property Value

IReadOnlyCollection<string>

RedirectUris

Gets the redirect uris configured for the application.

public IReadOnlyCollection<string> RedirectUris { get; }

Property Value

IReadOnlyCollection<string>

RoleConnectionsVerificationUrl

Gets the application's role connection verification entry point. null if not set.

public string RoleConnectionsVerificationUrl { get; }

Property Value

string

RpcState

Gets the application's rpc state.

public ApplicationRpcState RpcState { get; }

Property Value

ApplicationRpcState

StoreState

Gets the application's store state.

public ApplicationStoreState StoreState { get; }

Property Value

ApplicationStoreState

Tags

Gets a collection of tags related to the application.

public IReadOnlyCollection<string> Tags { get; }

Property Value

IReadOnlyCollection<string>

Team

Gets the team associated with this application if there is one.

public ITeam Team { get; }

Property Value

ITeam

TermsOfService

Gets the url of the app's terms of service.

public string TermsOfService { get; }

Property Value

string

VerificationState

Gets the application's verification state.

public ApplicationVerificationState VerificationState { get; }

Property Value

ApplicationVerificationState

VerifyKey

Gets the hex encoded key for verification in interactions.

public string VerifyKey { get; }

Property Value

string

Methods

ToString()

Gets the name of the application.

public override string ToString()

Returns

string

The name of the application.

UpdateAsync()

public Task UpdateAsync()

Returns

Task

Exceptions

InvalidOperationException

Unable to update this object from a different application token.