Class RestApplication
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
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
Description
Gets the description of the application.
public string Description { get; }
Property Value
DiscoverabilityState
Gets the application's discoverability state.
public ApplicationDiscoverabilityState DiscoverabilityState { get; }
Property Value
DiscoveryEligibilityFlags
Gets the application's discovery eligibility flags.
public DiscoveryEligibilityFlags DiscoveryEligibilityFlags { get; }
Property Value
ExplicitContentFilterLevel
Gets the application's explicit content filter level for uploaded media content used in application commands.
public ApplicationExplicitContentFilterLevel ExplicitContentFilterLevel { get; }
Property Value
Flags
Gets the application's public flags.
public ApplicationFlags Flags { get; }
Property Value
Guild
Gets the partial guild object of the application's developer's support server. null if not set.
public PartialGuild Guild { get; }
Property Value
IconUrl
Gets the icon URL of the application.
public string IconUrl { get; }
Property Value
InstallParams
Gets a collection of install parameters for this application; null if disabled.
public ApplicationInstallParams InstallParams { get; }
Property Value
IntegrationTypesConfig
Gets application install params configured for integration install types.
public IReadOnlyDictionary<ApplicationIntegrationType, ApplicationInstallParams> IntegrationTypesConfig { get; }
Property Value
InteractionEventTypes
Gets event types to be sent to the interaction endpoint.
public IReadOnlyCollection<string> InteractionEventTypes { get; }
Property Value
InteractionsEndpointUrl
Gets application's interactions endpoint url. null if not set.
public string InteractionsEndpointUrl { get; }
Property Value
InteractionsVersion
Gets the interactions version application uses.
public ApplicationInteractionsVersion InteractionsVersion { get; }
Property Value
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
IsMonetized
Whether the application has premium subscriptions.
public bool IsMonetized { get; }
Property Value
MonetizationEligibilityFlags
Gets the application's monetization eligibility flags.
public ApplicationMonetizationEligibilityFlags MonetizationEligibilityFlags { get; }
Property Value
MonetizationState
Gets the application's monetization state.
public ApplicationMonetizationState MonetizationState { get; }
Property Value
Name
Gets the name of the application.
public string Name { get; }
Property Value
Owner
Gets the partial user object containing info on the owner of the application.
public IUser Owner { get; }
Property Value
PrivacyPolicy
Gets the the url of the app's privacy policy.
public string PrivacyPolicy { get; }
Property Value
RPCOrigins
Gets the RPC origins of the application.
public IReadOnlyCollection<string> RPCOrigins { get; }
Property Value
RedirectUris
Gets the redirect uris configured for the application.
public IReadOnlyCollection<string> RedirectUris { get; }
Property Value
RoleConnectionsVerificationUrl
Gets the application's role connection verification entry point. null if not set.
public string RoleConnectionsVerificationUrl { get; }
Property Value
RpcState
Gets the application's rpc state.
public ApplicationRpcState RpcState { get; }
Property Value
StoreState
Gets the application's store state.
public ApplicationStoreState StoreState { get; }
Property Value
Tags
Gets a collection of tags related to the application.
public IReadOnlyCollection<string> Tags { get; }
Property Value
Team
Gets the team associated with this application if there is one.
public ITeam Team { get; }
Property Value
TermsOfService
Gets the url of the app's terms of service.
public string TermsOfService { get; }
Property Value
VerificationState
Gets the application's verification state.
public ApplicationVerificationState VerificationState { get; }
Property Value
VerifyKey
Gets the hex encoded key for verification in interactions.
public string VerifyKey { get; }
Property Value
Methods
ToString()
Gets the name of the application.
public override string ToString()
Returns
- string
The name of the application.
UpdateAsync()
public Task UpdateAsync()
Returns
Exceptions
- InvalidOperationException
Unable to update this object from a different application token.