Table of Contents

Class CurrentApplication

Namespace
NetCord
Assembly
NetCord.dll
public class CurrentApplication : Application, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonApplication>
Inheritance
CurrentApplication
Implements
Inherited Members

Constructors

CurrentApplication(JsonApplication, RestClient)

public CurrentApplication(JsonApplication jsonModel, RestClient client)

Parameters

jsonModel JsonApplication
client RestClient

Methods

GetAsync(RestRequestProperties?, CancellationToken)

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

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<Application>

GetRoleConnectionMetadataRecordsAsync(RestRequestProperties?, CancellationToken)

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

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<IReadOnlyList<ApplicationRoleConnectionMetadata>>

ModifyAsync(Action<CurrentApplicationOptions>, RestRequestProperties?, CancellationToken)

public Task<CurrentApplication> ModifyAsync(Action<CurrentApplicationOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

action Action<CurrentApplicationOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<CurrentApplication>

UpdateRoleConnectionMetadataRecordsAsync(IEnumerable<ApplicationRoleConnectionMetadataProperties>, RestRequestProperties?, CancellationToken)

public Task<IReadOnlyList<ApplicationRoleConnectionMetadata>> UpdateRoleConnectionMetadataRecordsAsync(IEnumerable<ApplicationRoleConnectionMetadataProperties> applicationRoleConnectionMetadataProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

applicationRoleConnectionMetadataProperties IEnumerable<ApplicationRoleConnectionMetadataProperties>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<IReadOnlyList<ApplicationRoleConnectionMetadata>>