Table of Contents

Class AsyncCommandBase

Namespace
Shard.Modding.SDK.Command
Assembly
Shard.Modding.SDK.dll

Asynchronous command variant for command work that remains pending after dispatch starts it.

public abstract class AsyncCommandBase : CommandDefinitionBase, IAsyncCommand, ICommand
Inheritance
AsyncCommandBase
Implements
Derived
Inherited Members

Constructors

AsyncCommandBase(string, string, params string[])

Asynchronous command variant for command work that remains pending after dispatch starts it.

protected AsyncCommandBase(string name, string description, params string[] aliases)

Parameters

name string
description string
aliases string[]

Methods

ExecuteAsync(CommandContext, CancellationToken)

public abstract ValueTask ExecuteAsync(CommandContext context, CancellationToken cancellationToken)

Parameters

context CommandContext
cancellationToken CancellationToken

Returns

ValueTask