Search Results for

    Show / Hide Table of Contents

    Class ModalCommandParameterInfo

    Represents the base parameter info class for InteractionService modals.

    Inheritance
    Object
    CommandParameterInfo
    ModalCommandParameterInfo
    Implements
    IParameterInfo
    Inherited Members
    CommandParameterInfo.Name
    CommandParameterInfo.ParameterType
    CommandParameterInfo.IsRequired
    CommandParameterInfo.IsParameterArray
    CommandParameterInfo.DefaultValue
    CommandParameterInfo.Attributes
    CommandParameterInfo.Preconditions
    CommandParameterInfo.CheckPreconditionsAsync(IInteractionContext, Object, IServiceProvider)
    Namespace: Discord.Interactions
    Assembly: Discord.Net.Interactions.dll
    Syntax
    public class ModalCommandParameterInfo : CommandParameterInfo, IParameterInfo

    Properties

    | Improve this Doc View Source

    Command

    Declaration
    public ModalCommandInfo Command { get; }
    Property Value
    Type Description
    ModalCommandInfo
    | Improve this Doc View Source

    IsModalParameter

    Gets whether this parameter is an IModal

    Declaration
    public bool IsModalParameter { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Modal

    Gets the ModalInfo class for this parameter if IsModalParameter is true.

    Declaration
    public ModalInfo Modal { get; }
    Property Value
    Type Description
    ModalInfo
    | Improve this Doc View Source

    TypeReader

    Gets the TypeReader assigned to this parameter, if IsModalParameter is true.

    Declaration
    public TypeReader TypeReader { get; }
    Property Value
    Type Description
    TypeReader

    Implements

    IParameterInfo

    Theme

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