Table of Contents

Interface IResult

Namespace
Discord.Interactions
Assembly
Discord.Net.Interactions.dll

Contains information of the result related to a command.

public interface IResult

Properties

Error

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

InteractionCommandError? Error { get; }

Property Value

InteractionCommandError?

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

ErrorReason

Gets 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.