Table of Contents

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 JsonApplication
client 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

User

BotPublic

public bool? BotPublic { get; }

Property Value

bool?

BotRequireCodeGrant

public bool? BotRequireCodeGrant { get; }

Property Value

bool?

CoverImageHash

public string? CoverImageHash { get; }

Property Value

string

CustomInstallUrl

public string? CustomInstallUrl { get; }

Property Value

string

Description

public string Description { get; }

Property Value

string

Flags

public ApplicationFlags? Flags { get; }

Property Value

ApplicationFlags?

Guild

public RestGuild? Guild { get; }

Property Value

RestGuild

GuildId

public ulong? GuildId { get; }

Property Value

ulong?

IconHash

public string? IconHash { get; }

Property Value

string

Id

The unique identifier for this object.

public override ulong Id { get; }

Property Value

ulong

InstallParams

public ApplicationInstallParams? InstallParams { get; }

Property Value

ApplicationInstallParams

IntegrationTypesConfiguration

public IReadOnlyDictionary<ApplicationIntegrationType, ApplicationIntegrationTypeConfiguration>? IntegrationTypesConfiguration { get; }

Property Value

IReadOnlyDictionary<ApplicationIntegrationType, ApplicationIntegrationTypeConfiguration>

InteractionsEndpointUrl

public string? InteractionsEndpointUrl { get; }

Property Value

string

Name

public string Name { get; }

Property Value

string

Owner

public User? Owner { get; }

Property Value

User

PrimarySkuId

public ulong? PrimarySkuId { get; }

Property Value

ulong?

PrivacyPolicyUrl

public string? PrivacyPolicyUrl { get; }

Property Value

string

RedirectUris

public IReadOnlyList<string>? RedirectUris { get; }

Property Value

IReadOnlyList<string>

RoleConnectionsVerificationUrl

public string? RoleConnectionsVerificationUrl { get; }

Property Value

string

RpcOrigins

public IReadOnlyList<string> RpcOrigins { get; }

Property Value

IReadOnlyList<string>

Slug

public string? Slug { get; }

Property Value

string

Tags

public IReadOnlyList<string>? Tags { get; }

Property Value

IReadOnlyList<string>

Team

public Team? Team { get; }

Property Value

Team

TermsOfServiceUrl

public string? TermsOfServiceUrl { get; }

Property Value

string

VerifyKey

public string VerifyKey { get; }

Property Value

string

Methods

CreateEmojiAsync(ApplicationEmojiProperties, RestRequestProperties?, CancellationToken)

public Task<ApplicationEmoji> CreateEmojiAsync(ApplicationEmojiProperties applicationEmojiProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

applicationEmojiProperties ApplicationEmojiProperties
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<ApplicationEmoji>

DeleteEmojiAsync(ulong, RestRequestProperties?, CancellationToken)

public Task DeleteEmojiAsync(ulong emojiId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

emojiId ulong
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task

GetAchievementIconUrl(ulong, string, ImageFormat)

public ImageUrl? GetAchievementIconUrl(ulong achievementId, string iconHash, ImageFormat format)

Parameters

achievementId ulong
iconHash string
format ImageFormat

Returns

ImageUrl

GetAssetUrl(ulong, ImageFormat)

public ImageUrl? GetAssetUrl(ulong assetId, ImageFormat format)

Parameters

assetId ulong
format ImageFormat

Returns

ImageUrl

GetAsync(RestRequestProperties?, CancellationToken)

public virtual Task<Application> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<Application>

GetCoverUrl(ImageFormat)

public ImageUrl? GetCoverUrl(ImageFormat format)

Parameters

format ImageFormat

Returns

ImageUrl

GetEmojiAsync(ulong, RestRequestProperties?, CancellationToken)

public Task<ApplicationEmoji> GetEmojiAsync(ulong emojiId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

emojiId ulong
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<ApplicationEmoji>

GetEmojisAsync(RestRequestProperties?, CancellationToken)

public Task<IReadOnlyList<ApplicationEmoji>> GetEmojisAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<IReadOnlyList<ApplicationEmoji>>

GetIconUrl(ImageFormat)

public ImageUrl? GetIconUrl(ImageFormat format)

Parameters

format ImageFormat

Returns

ImageUrl

GetStorePageAssetUrl(ulong, ImageFormat)

public ImageUrl? GetStorePageAssetUrl(ulong assetId, ImageFormat format)

Parameters

assetId ulong
format ImageFormat

Returns

ImageUrl

ModifyEmojiAsync(ulong, Action<ApplicationEmojiOptions>, RestRequestProperties?, CancellationToken)

public Task<ApplicationEmoji> ModifyEmojiAsync(ulong emojiId, Action<ApplicationEmojiOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

emojiId ulong
action Action<ApplicationEmojiOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<ApplicationEmoji>