using Discord.Interactions.Builders; namespace Discord.Interactions { /// /// Represents the base parameter info class for modals. /// public class ModalCommandParameterInfo : CommandParameterInfo { /// /// Gets the class for this parameter if is true. /// public ModalInfo Modal { get; private set; } /// /// Gets whether this parameter is an /// public bool IsModalParameter => Modal is not null; /// public new ModalCommandInfo Command => base.Command as ModalCommandInfo; internal ModalCommandParameterInfo(ModalCommandParameterBuilder builder, ICommandInfo command) : base(builder, command) { Modal = builder.Modal; } } }