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)
Initialize a new MentionableSelectComponentBuilder.
public MentionableSelectComponentBuilder(ModalBuilder modal)
Parameters
modalModalBuilderParent modal of this input component.
Properties
Instance
protected override MentionableSelectComponentBuilder Instance { get; }
Property Value
Methods
AddDefaulValue(params IEnumerable<IRole>)
Adds roles as a default value to DefaultValues.
public MentionableSelectComponentBuilder AddDefaulValue(params IEnumerable<IRole> roles)
Parameters
rolesIEnumerable<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
channelsIEnumerable<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
usersIEnumerable<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
idulongThe ID to add as a default value.
typeSelectDefaultValueTypeEnitity type of the snowflake ID.
Returns
- MentionableSelectComponentBuilder
The builder instance.