Class Application
- Namespace
- NetCord
- Assembly
- NetCord.dll
public class Application : ClientEntity, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonApplication>
- Inheritance
-
Application
- Implements
- Derived
- Inherited Members
Constructors
Application(JsonApplication, RestClient)
public Application(JsonApplication jsonModel, RestClient client)
Parameters
jsonModel
JsonApplicationclient
RestClient
Properties
ApproximateGuildCount
public int? ApproximateGuildCount { get; }
Property Value
- int?
ApproximateUserInstallCount
public int? ApproximateUserInstallCount { get; }
Property Value
- int?
Bot
public User? Bot { get; }
Property Value
BotPublic
public bool? BotPublic { get; }
Property Value
- bool?
BotRequireCodeGrant
public bool? BotRequireCodeGrant { get; }
Property Value
- bool?
CoverImageHash
public string? CoverImageHash { get; }
Property Value
CustomInstallUrl
public string? CustomInstallUrl { get; }
Property Value
Description
public string Description { get; }
Property Value
Flags
public ApplicationFlags? Flags { get; }
Property Value
Guild
public RestGuild? Guild { get; }
Property Value
GuildId
public ulong? GuildId { get; }
Property Value
IconHash
public string? IconHash { get; }
Property Value
Id
The unique identifier for this object.
public override ulong Id { get; }
Property Value
InstallParams
public ApplicationInstallParams? InstallParams { get; }
Property Value
IntegrationTypesConfiguration
public IReadOnlyDictionary<ApplicationIntegrationType, ApplicationIntegrationTypeConfiguration>? IntegrationTypesConfiguration { get; }
Property Value
InteractionsEndpointUrl
public string? InteractionsEndpointUrl { get; }
Property Value
Name
public string Name { get; }
Property Value
Owner
public User? Owner { get; }
Property Value
PrimarySkuId
public ulong? PrimarySkuId { get; }
Property Value
PrivacyPolicyUrl
public string? PrivacyPolicyUrl { get; }
Property Value
RedirectUris
public IReadOnlyList<string>? RedirectUris { get; }
Property Value
RoleConnectionsVerificationUrl
public string? RoleConnectionsVerificationUrl { get; }
Property Value
RpcOrigins
public IReadOnlyList<string> RpcOrigins { get; }
Property Value
Slug
public string? Slug { get; }
Property Value
Tags
public IReadOnlyList<string>? Tags { get; }
Property Value
Team
public Team? Team { get; }
Property Value
TermsOfServiceUrl
public string? TermsOfServiceUrl { get; }
Property Value
VerifyKey
public string VerifyKey { get; }
Property Value
Methods
CreateEmojiAsync(ApplicationEmojiProperties, RestRequestProperties?, CancellationToken)
public Task<ApplicationEmoji> CreateEmojiAsync(ApplicationEmojiProperties applicationEmojiProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationEmojiProperties
ApplicationEmojiPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteEmojiAsync(ulong, RestRequestProperties?, CancellationToken)
public Task DeleteEmojiAsync(ulong emojiId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
emojiId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetAchievementIconUrl(ulong, string, ImageFormat)
public ImageUrl? GetAchievementIconUrl(ulong achievementId, string iconHash, ImageFormat format)
Parameters
achievementId
ulongiconHash
stringformat
ImageFormat
Returns
GetAssetUrl(ulong, ImageFormat)
public ImageUrl? GetAssetUrl(ulong assetId, ImageFormat format)
Parameters
assetId
ulongformat
ImageFormat
Returns
GetAsync(RestRequestProperties?, CancellationToken)
public virtual Task<Application> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetCoverUrl(ImageFormat)
public ImageUrl? GetCoverUrl(ImageFormat format)
Parameters
format
ImageFormat
Returns
GetEmojiAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<ApplicationEmoji> GetEmojiAsync(ulong emojiId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
emojiId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetEmojisAsync(RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<ApplicationEmoji>> GetEmojisAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetIconUrl(ImageFormat)
public ImageUrl? GetIconUrl(ImageFormat format)
Parameters
format
ImageFormat
Returns
GetStorePageAssetUrl(ulong, ImageFormat)
public ImageUrl? GetStorePageAssetUrl(ulong assetId, ImageFormat format)
Parameters
assetId
ulongformat
ImageFormat
Returns
ModifyEmojiAsync(ulong, Action<ApplicationEmojiOptions>, RestRequestProperties?, CancellationToken)
public Task<ApplicationEmoji> ModifyEmojiAsync(ulong emojiId, Action<ApplicationEmojiOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
emojiId
ulongaction
Action<ApplicationEmojiOptions>properties
RestRequestPropertiescancellationToken
CancellationToken