Struct CommandResult
Represents a command's execution result.
Namespace: DSharpPlus.CommandsNext
Assembly: cs.temp.dll.dll
Syntax
public struct CommandResult
Properties
Context
Gets the context in which the command was executed.
Declaration
public CommandContext Context { get; }
Property Value
Type | Description |
---|---|
CommandContext |
Exception
Gets the exception (if any) that occurred when executing the command.
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
Exception |
IsSuccessful
Gets whether the command execution succeeded.
Declaration
public bool IsSuccessful { get; }
Property Value
Type | Description |
---|---|
System.Boolean |