Method ExecuteCoreAsync
- Namespace
- DSharpPlus.Commands
- Assembly
- DSharpPlus.Commands.dll
ExecuteCoreAsync(CommandContext)
This method will execute the command provided without any safety checks, context checks or event invocation.
public virtual ValueTask<(object? CommandObject, Exception? Error)> ExecuteCoreAsync(CommandContext context)
Parameters
context
CommandContextThe context of the command being executed.
Returns
- ValueTask<(object CommandObject, Exception Error)>
A tuple containing the command object and any error that occurred during execution. The command object may be null when the delegate is static and is from a static class.