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
stringValue to convert.
ctx
CommandContextContext 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.