Method ExecuteCheckAsync
- Namespace
- DSharpPlus.Commands.ContextChecks.ParameterChecks
- Assembly
- DSharpPlus.Commands.dll
ExecuteCheckAsync(TAttribute, ParameterCheckInfo, CommandContext)
Executes the check given the attribute and parameter info.
ValueTask<string?> ExecuteCheckAsync(TAttribute attribute, ParameterCheckInfo info, CommandContext context)
Parameters
attribute
TAttributeThe attribute this parameter was decorated with.
info
ParameterCheckInfoThe relevant parameters metadata representation and value.
context
CommandContextThe context the containing command is executed in.
Returns
Remarks
It is allowed for a check to access other metadata from the context.