Table of Contents

Method ConvertAsync

Namespace
DSharpPlus.CommandsNext.Converters
Assembly
DSharpPlus.CommandsNext.dll

ConvertAsync(string, CommandContext)

Converts the raw value into the specified type.

Task<Optional<T>> ConvertAsync(string value, CommandContext ctx)

Parameters

value string

Value to convert.

ctx CommandContext

Context in which the value will be converted.

Returns

Task<Optional<T>>

A structure containing information whether the value was converted, and, if so, the converted value.