Class MemberTypeReader<T>
ATypeReader for parsing objects implementing IGuildMember.
public class MemberTypeReader<T> : TypeReader where T : class, IGuildMember
Type Parameters
TThe type to be checked; must implementIGuildMember.
- Inheritance
-
objectMemberTypeReader<T>
Methods
ReadAsync(ICommandContext, string, IServiceProvider)
Attempts to parse the input into the desired type.
public override Task<TypeReaderResult> ReadAsync(ICommandContext context, string input, IServiceProvider services)
Parameters
contextICommandContextThe context of the command.
inputstringThe raw input of the command.
servicesIServiceProviderThe service collection used for dependency injection.
Returns
- Task<TypeReaderResult>
A task that represents the asynchronous parsing operation. The task result contains the parsing result.