Table of Contents

Struct SelectMenuDefaultValue

Namespace
Discord
Assembly
Discord.Net.Core.dll

Represents a default value of an auto-populated select menu.

public readonly struct SelectMenuDefaultValue
Inherited Members

Constructors

SelectMenuDefaultValue(ulong, SelectDefaultValueType)

Creates a new default value.

public SelectMenuDefaultValue(ulong id, SelectDefaultValueType type)

Parameters

id ulong

Id of the target object.

type SelectDefaultValueType

Type of the target entity.

Properties

Id

Gets the id of entity this default value refers to.

public ulong Id { get; }

Property Value

ulong

Type

Gets the type of this default value.

public SelectDefaultValueType Type { get; }

Property Value

SelectDefaultValueType

Methods

FromChannel(IChannel)

Creates a new default value from a IChannel.

public static SelectMenuDefaultValue FromChannel(IChannel channel)

Parameters

channel IChannel

Returns

SelectMenuDefaultValue

FromRole(IRole)

Creates a new default value from a IRole.

public static SelectMenuDefaultValue FromRole(IRole role)

Parameters

role IRole

Returns

SelectMenuDefaultValue

FromUser(IUser)

Creates a new default value from a IUser.

public static SelectMenuDefaultValue FromUser(IUser user)

Parameters

user IUser

Returns

SelectMenuDefaultValue