Table of Contents

Class GuildApplicationCommand

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class GuildApplicationCommand : ApplicationCommand, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonApplicationCommand>
Inheritance
GuildApplicationCommand
Implements
Inherited Members

Constructors

GuildApplicationCommand(JsonApplicationCommand, RestClient)

public GuildApplicationCommand(JsonApplicationCommand jsonModel, RestClient client)

Parameters

jsonModel JsonApplicationCommand
client RestClient

Properties

GuildId

public ulong GuildId { get; }

Property Value

ulong

Methods

DeleteAsync(RestRequestProperties?, CancellationToken)

public override Task DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task

GetAsync(RestRequestProperties?, CancellationToken)

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

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<ApplicationCommand>

GetPermissionsAsync(RestRequestProperties?, CancellationToken)

public Task<ApplicationCommandGuildPermissions> GetPermissionsAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<ApplicationCommandGuildPermissions>

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

public override Task<ApplicationCommand> ModifyAsync(Action<ApplicationCommandOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

action Action<ApplicationCommandOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<ApplicationCommand>

OverwritePermissionsAsync(IEnumerable<ApplicationCommandGuildPermissionProperties>, RestRequestProperties?, CancellationToken)

public Task<ApplicationCommandGuildPermissions> OverwritePermissionsAsync(IEnumerable<ApplicationCommandGuildPermissionProperties> newPermissions, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

newPermissions IEnumerable<ApplicationCommandGuildPermissionProperties>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<ApplicationCommandGuildPermissions>