Table of Contents

Class MentionableMenuProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class MentionableMenuProperties : EntityMenuProperties
Inheritance
MentionableMenuProperties
Inherited Members

Constructors

MentionableMenuProperties(string)

public MentionableMenuProperties(string customId)

Parameters

customId string

Properties

ComponentType

Type of the component.

public override ComponentType ComponentType { get; }

Property Value

ComponentType

DefaultValues

Default values for auto-populated select menu components.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("default_values")]
public IEnumerable<MentionableValueProperties>? DefaultValues { get; set; }

Property Value

IEnumerable<MentionableValueProperties>

Methods

AddDefaultValues(params MentionableValueProperties[])

Default values for auto-populated select menu components.

public MentionableMenuProperties AddDefaultValues(params MentionableValueProperties[] defaultValues)

Parameters

defaultValues MentionableValueProperties[]

Returns

MentionableMenuProperties

AddDefaultValues(IEnumerable<MentionableValueProperties>)

Default values for auto-populated select menu components.

public MentionableMenuProperties AddDefaultValues(IEnumerable<MentionableValueProperties> defaultValues)

Parameters

defaultValues IEnumerable<MentionableValueProperties>

Returns

MentionableMenuProperties

WithCustomId(string)

ID for the menu (max 100 characters).

public MentionableMenuProperties WithCustomId(string customId)

Parameters

customId string

Returns

MentionableMenuProperties

WithDefaultValues(IEnumerable<MentionableValueProperties>?)

Default values for auto-populated select menu components.

public MentionableMenuProperties WithDefaultValues(IEnumerable<MentionableValueProperties>? defaultValues)

Parameters

defaultValues IEnumerable<MentionableValueProperties>

Returns

MentionableMenuProperties

WithDisabled(bool)

Whether the menu is disabled.

public MentionableMenuProperties WithDisabled(bool disabled = true)

Parameters

disabled bool

Returns

MentionableMenuProperties

WithMaxValues(int?)

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

public MentionableMenuProperties WithMaxValues(int? maxValues)

Parameters

maxValues int?

Returns

MentionableMenuProperties

WithMinValues(int?)

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

public MentionableMenuProperties WithMinValues(int? minValues)

Parameters

minValues int?

Returns

MentionableMenuProperties

WithPlaceholder(string?)

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

public MentionableMenuProperties WithPlaceholder(string? placeholder)

Parameters

placeholder string

Returns

MentionableMenuProperties