Method ConvertArgumentAsync
- Namespace
- DSharpPlus.CommandsNext
- Assembly
- DSharpPlus.CommandsNext.dll
ConvertArgumentAsync<T>(string, CommandContext)
Converts a string to specified type.
public Task<object> ConvertArgumentAsync<T>(string value, CommandContext ctx)
Parameters
valuestringValue to convert.
ctxCommandContextContext in which to convert to.
Returns
Type Parameters
TType to convert to.
ConvertArgumentAsync(string?, CommandContext, Type)
Converts a string to specified type.
public Task<object> ConvertArgumentAsync(string? value, CommandContext ctx, Type type)
Parameters
valuestringValue to convert.
ctxCommandContextContext in which to convert to.
typeTypeType to convert to.