Class DiscordRoleConverter
Represents a discord role converter.
Inheritance
System.Object
DiscordRoleConverter
Namespace: DisCatSharp.CommandsNext.Converters
Assembly: DisCatSharp.CommandsNext.dll
Syntax
public class DiscordRoleConverter : IArgumentConverter<DiscordRole>, IArgumentConverter
Explicit Interface Implementations
| Improve this Doc View SourceIArgumentConverter<DiscordRole>.ConvertAsync(String, CommandContext)
Converts a string.
Declaration
Task<Optional<DiscordRole>> IArgumentConverter<DiscordRole>.ConvertAsync(string value, CommandContext ctx)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The string to convert. |
CommandContext | ctx | The command context. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Optional<DiscordRole>> |