Table of Contents

Interface IResult

Namespace
Discord.Commands
Assembly
Discord.Net.Commands.dll

Contains information of the result related to a command.

public interface IResult

Properties

Error

Describes the error type that may have occurred during the operation.

CommandError? Error { get; }

Property Value

CommandError?

A CommandError indicating the type of error that may have occurred during the operation; null if the operation was successful.

ErrorReason

Describes the reason for the error.

string ErrorReason { get; }

Property Value

string

A string containing the error reason.

IsSuccess

Indicates whether the operation was successful or not.

bool IsSuccess { get; }

Property Value

bool

true if the result is positive; otherwise false.