Search Results for

    Show / Hide Table of Contents

    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 Source

    Error

    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.

    | Improve this Doc View Source

    ErrorReason

    Gets the reason for the error.

    Declaration
    string ErrorReason { get; }
    Property Value
    Type Description
    String

    A string containing the error reason.

    | Improve this Doc View Source

    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.

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.7.2