Table of Contents

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 DiscordMessage

Message to use for context.

prefix string

Command prefix, used to execute commands.

cmd Command

Command to execute.

rawArguments string

Raw arguments to pass to command.

Returns

CommandContext

Created command execution context.