Table of Contents

Interface ISnowflakeSelectComponentBuilder

Namespace
Discord.Interactions.Builders
Assembly
Discord.Net.Interactions.dll

Represent a builder for creating SnowflakeSelectComponentInfo.

public interface ISnowflakeSelectComponentBuilder : IInputComponentBuilder, IModalComponentBuilder
Inherited Members

Properties

DefaultValues

Gets the default value collection for this select component.

IReadOnlyCollection<SelectMenuDefaultValue> DefaultValues { get; }

Property Value

IReadOnlyCollection<SelectMenuDefaultValue>

DefaultValuesType

Gets the default value type of this select component.

SelectDefaultValueType? DefaultValuesType { get; }

Property Value

SelectDefaultValueType?

MaxValues

Gets the maximum number of values that can be selected.

int MaxValues { get; }

Property Value

int

MinValues

Gets the minimum number of values that can be selected.

int MinValues { get; }

Property Value

int

Placeholder

Gets the placeholder text for this select component.

string Placeholder { get; set; }

Property Value

string

Methods

AddDefaultValue(SelectMenuDefaultValue)

Adds a default value to the DefaultValues.

ISnowflakeSelectComponentBuilder AddDefaultValue(SelectMenuDefaultValue defaultValue)

Parameters

defaultValue SelectMenuDefaultValue

Default value to be added.

Returns

ISnowflakeSelectComponentBuilder

The builder instance.

WithMaxValues(int)

Sets MaxValues.

ISnowflakeSelectComponentBuilder WithMaxValues(int maxValues)

Parameters

maxValues int

New value of the MaxValues

Returns

ISnowflakeSelectComponentBuilder

The builder instance.

WithMinValues(int)

Sets MinValues.

ISnowflakeSelectComponentBuilder WithMinValues(int minValues)

Parameters

minValues int

New value of the MinValues

Returns

ISnowflakeSelectComponentBuilder

The builder instance.

WithPlaceholder(string)

ISnowflakeSelectComponentBuilder WithPlaceholder(string placeholder)

Parameters

placeholder string

New value of the Placeholder

Returns

ISnowflakeSelectComponentBuilder

The builder instance.