Interface IResult
Contains information of the result related to a command.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public interface IResult
Properties
| Improve this Doc View SourceError
Gets the error type that may have occurred during the operation.
Declaration
InteractionCommandError? Error { get; }
Property Value
Type | Description |
---|---|
Nullable<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.
Declaration
string ErrorReason { get; }
Property Value
Type | Description |
---|---|
String | A string containing the error reason. |
IsSuccess
Indicates whether the operation was successful or not.
Declaration
bool IsSuccess { get; }
Property Value
Type | Description |
---|---|
Boolean | true if the result is positive; otherwise false. |