Table of Contents

Class MentionableSelectComponentBuilder

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

Represents a builder for creating a MentionableSelectComponentInfo.

public class MentionableSelectComponentBuilder : SnowflakeSelectComponentBuilder<MentionableSelectComponentInfo, MentionableSelectComponentBuilder>, ISnowflakeSelectComponentBuilder, IInputComponentBuilder, IModalComponentBuilder
Inheritance
MentionableSelectComponentBuilder
Implements
Inherited Members

Constructors

MentionableSelectComponentBuilder(ModalBuilder)

public MentionableSelectComponentBuilder(ModalBuilder modal)

Parameters

modal ModalBuilder

Parent modal of this input component.

Properties

Instance

protected override MentionableSelectComponentBuilder Instance { get; }

Property Value

MentionableSelectComponentBuilder

Methods

AddDefaulValue(params IEnumerable<IRole>)

Adds roles as a default value to DefaultValues.

public MentionableSelectComponentBuilder AddDefaulValue(params IEnumerable<IRole> roles)

Parameters

roles IEnumerable<IRole>

The role to add as a default value.

Returns

MentionableSelectComponentBuilder

The builder instance.

AddDefaultValue(params IEnumerable<IChannel>)

Adds channels as a default value to DefaultValues.

public MentionableSelectComponentBuilder AddDefaultValue(params IEnumerable<IChannel> channels)

Parameters

channels IEnumerable<IChannel>

The channel to add as a default value.

Returns

MentionableSelectComponentBuilder

The builder instance.

AddDefaultValue(params IEnumerable<IUser>)

Add users as a default value to DefaultValues.

public MentionableSelectComponentBuilder AddDefaultValue(params IEnumerable<IUser> users)

Parameters

users IEnumerable<IUser>

The users to add as a default value.

Returns

MentionableSelectComponentBuilder

The builder instance.

AddDefaultValue(ulong, SelectDefaultValueType)

Adds a snowflake ID as a default value to DefaultValues.

public MentionableSelectComponentBuilder AddDefaultValue(ulong id, SelectDefaultValueType type)

Parameters

id ulong

The ID to add as a default value.

type SelectDefaultValueType

Enitity type of the snowflake ID.

Returns

MentionableSelectComponentBuilder

The builder instance.