Class EntityMenuProperties
public abstract class EntityMenuProperties : MenuProperties, IInteractiveComponentProperties, IMessageComponentProperties, IJsonSerializable<IMessageComponentProperties>, IComponentContainerComponentProperties, IJsonSerializable<IComponentContainerComponentProperties>, ILabelComponentProperties, IComponentProperties, IJsonSerializable<ILabelComponentProperties>
- Inheritance
-
EntityMenuProperties
- Implements
- Derived
- Inherited Members
Constructors
EntityMenuProperties(string)
protected EntityMenuProperties(string customId)
Parameters
customIdstring
Methods
WithCustomId(string)
Developer-defined identifier for the component (max 100 characters).
public EntityMenuProperties WithCustomId(string customId)
Parameters
customIdstring
Returns
WithDisabled(bool)
Whether the menu is disabled.
public EntityMenuProperties WithDisabled(bool disabled = true)
Parameters
disabledbool
Returns
WithId(int?)
Unique identifier for the component. Auto populated through increment if not provided.
public EntityMenuProperties WithId(int? id)
Parameters
idint?
Returns
WithMaxValues(int?)
Maximum number of items that can be chosen, default 1 (max 25).
public EntityMenuProperties WithMaxValues(int? maxValues)
Parameters
maxValuesint?
Returns
WithMinValues(int?)
Minimum number of items that must be chosen, default 1 (0-25).
public EntityMenuProperties WithMinValues(int? minValues)
Parameters
minValuesint?
Returns
WithParentId(int?)
public EntityMenuProperties WithParentId(int? parentId)
Parameters
parentIdint?
Returns
WithPlaceholder(string?)
Placeholder text if nothing is selected (max 150 characters).
public EntityMenuProperties WithPlaceholder(string? placeholder)
Parameters
placeholderstring
Returns
WithRequired(bool?)
Whether the menu is required to answer in a modal. Defaults to true.
public EntityMenuProperties WithRequired(bool? required = true)
Parameters
requiredbool?