namespace Discord.Commands
{
///
/// Contains information of the result related to a command.
///
public interface IResult
{
///
/// Describes the error type that may have occurred during the operation.
///
///
/// A indicating the type of error that may have occurred during the operation;
/// null if the operation was successful.
///
CommandError? Error { get; }
///
/// Describes the reason for the error.
///
///
/// A string containing the error reason.
///
string ErrorReason { get; }
///
/// Indicates whether the operation was successful or not.
///
///
/// true if the result is positive; otherwise false.
///
bool IsSuccess { get; }
}
}