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