* add interaction service attributes new modal input types * add new modal component type converters * relocate hide attribute outside of slash command enum converter for general purpose use * refactor base inputcomponentbuilder types to use modal component typeconverters * add builders for new modal input types * add component insertion methods to modal builder for new input types * refactor base inputcomponentinfo class to use modal component typeconverters * add component info classes for newly added modal input types * add build logic for new modal input metadata classes * add componet collection properties for new modal input types to modalinfo * implement convertion logic for new modal inputs to the respond with modal extension methods * implement modal input typeconverters into interaction service * add read logic to enum modal component typeconverter * add default entity modal component typeconverter * add write logic to default value modal component typeconverter * add write logic to the nullable modal component typeconverter * add description property to input label attribute * add inline docs to modal attributes * add modal file upload attribute * add inline docs to input component infos * add description property to input component builder * add inline docs to modal component builders * add modal file upload component info * add modal file upload component builder * rename select input attribute * refactor select input attribute and add description property in moduleClassBuilder * add inline docs to modalBuilder * add description to inputComponentInfo * file-scope namespace for commandBuilder and modal interfaces * update respondWithModal logic to include new components * add inline docs and file upload component to modalInfo * add attachment modal typeconverter * create base non-input modal component entities * update modal component typeconverter namespaces and remove unused * add default min/max values to select input attribute * create text display builder and info classes * add text display parsing logic * add text display attribute * add modal select menu option attribute * add docs to text display component info * fix text display parsing * add isRequired mapping to select menus * revert to block-scope to clear diff false-positives * fix inline doc annotations * fix build errors * add interaction parameter to modal component typeconverter write method * add null check to select menu option attribute * add null check to default value modalTypeConverter write method * make ctors of modal component base attributes internal * implement predicate to hide attribute and enum modalcomponent typeconverter * fix HideAttribute inline docs build errors * simplify naming of the component classes and normalize namespaces * fix build errors in module class builder * add inline docs to modalComponentTypeConverter TryGetModalInteractionData * add min/max values parameters to ModalChannelSelectAttribute * fix defaultArrayModalTypeConverter chanell type write logic * simplify addDefaultValue methods for channe, mentionable, role, and user selects * add emoji support to select menu options * add instance value parsing to enum modalComponentConverter
24 lines
727 B
C#
24 lines
727 B
C#
namespace Discord.Interactions;
|
|
|
|
/// <summary>
|
|
/// Represents the <see cref="InputComponentInfo"/> class for <see cref="ComponentType.FileUpload"/> type.
|
|
/// </summary>
|
|
public class FileUploadComponentInfo : InputComponentInfo
|
|
{
|
|
/// <summary>
|
|
/// Gets the minimum number of values that can be selected.
|
|
/// </summary>
|
|
public int MinValues { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the maximum number of values that can be selected.
|
|
/// </summary>
|
|
public int MaxValues { get; }
|
|
|
|
internal FileUploadComponentInfo(Builders.FileUploadComponentBuilder builder, ModalInfo modal) : base(builder, modal)
|
|
{
|
|
MinValues = builder.MinValues;
|
|
MaxValues = builder.MaxValues;
|
|
}
|
|
}
|