Method CreateContext
- Namespace
- DSharpPlus.CommandsNext
- Assembly
- DSharpPlus.CommandsNext.dll
CreateContext(DiscordMessage, string, Command?, string?)
Creates a command execution context from specified arguments.
public CommandContext CreateContext(DiscordMessage msg, string prefix, Command? cmd, string? rawArguments = null)
Parameters
msg
DiscordMessageMessage to use for context.
prefix
stringCommand prefix, used to execute commands.
cmd
CommandCommand to execute.
rawArguments
stringRaw arguments to pass to command.
Returns
- CommandContext
Created command execution context.