Table of Contents

Class ApplicationCommandServiceManager

Namespace
NetCord.Services.ApplicationCommands
Assembly
NetCord.Services.dll
public class ApplicationCommandServiceManager
Inheritance
ApplicationCommandServiceManager
Inherited Members

Constructors

ApplicationCommandServiceManager()

public ApplicationCommandServiceManager()

Properties

Services

public IReadOnlyList<IApplicationCommandService> Services { get; }

Property Value

IReadOnlyList<IApplicationCommandService>

Methods

AddService(IApplicationCommandService)

public void AddService(IApplicationCommandService service)

Parameters

service IApplicationCommandService

RegisterCommandsAsync(RestClient, ulong, ulong?, RestRequestProperties?, CancellationToken)

public Task<IReadOnlyList<ApplicationCommand>> RegisterCommandsAsync(RestClient client, ulong applicationId, ulong? guildId = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

client RestClient
applicationId ulong
guildId ulong?
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<IReadOnlyList<ApplicationCommand>>