Table of Contents

Class EntityMenuProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public abstract class EntityMenuProperties : MenuProperties
Inheritance
EntityMenuProperties
Derived
Inherited Members

Constructors

EntityMenuProperties(string)

protected EntityMenuProperties(string customId)

Parameters

customId string

Methods

WithCustomId(string)

ID for the menu (max 100 characters).

public EntityMenuProperties WithCustomId(string customId)

Parameters

customId string

Returns

EntityMenuProperties

WithDisabled(bool)

Whether the menu is disabled.

public EntityMenuProperties WithDisabled(bool disabled = true)

Parameters

disabled bool

Returns

EntityMenuProperties

WithMaxValues(int?)

Maximum number of items that can be chosen, default 1 (max 25).

public EntityMenuProperties WithMaxValues(int? maxValues)

Parameters

maxValues int?

Returns

EntityMenuProperties

WithMinValues(int?)

Minimum number of items that must be chosen, default 1 (0-25).

public EntityMenuProperties WithMinValues(int? minValues)

Parameters

minValues int?

Returns

EntityMenuProperties

WithPlaceholder(string?)

Placeholder text if nothing is selected (max 150 characters).

public EntityMenuProperties WithPlaceholder(string? placeholder)

Parameters

placeholder string

Returns

EntityMenuProperties