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
JsonApplicationclient
RestClient
Methods
GetAsync(RestRequestProperties?, CancellationToken)
public override Task<Application> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetRoleConnectionMetadataRecordsAsync(RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<ApplicationRoleConnectionMetadata>> GetRoleConnectionMetadataRecordsAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyAsync(Action<CurrentApplicationOptions>, RestRequestProperties?, CancellationToken)
public Task<CurrentApplication> ModifyAsync(Action<CurrentApplicationOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
action
Action<CurrentApplicationOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
UpdateRoleConnectionMetadataRecordsAsync(IEnumerable<ApplicationRoleConnectionMetadataProperties>, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<ApplicationRoleConnectionMetadata>> UpdateRoleConnectionMetadataRecordsAsync(IEnumerable<ApplicationRoleConnectionMetadataProperties> applicationRoleConnectionMetadataProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationRoleConnectionMetadataProperties
IEnumerable<ApplicationRoleConnectionMetadataProperties>properties
RestRequestPropertiescancellationToken
CancellationToken