Table of Contents

Method ConvertAsync

Namespace
DSharpPlus.Commands.Converters
Assembly
DSharpPlus.Commands.dll

ConvertAsync(ConverterContext)

Converts the argument to the desired type.

public Task<Optional<DiscordRole>> ConvertAsync(ConverterContext context)

Parameters

context ConverterContext

The context for this conversion.

Returns

Task<Optional<DiscordRole>>

An optional containing the converted value, or an empty optional if the conversion failed.