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
ulongId of the target object.
type
SelectDefaultValueTypeType of the target entity.
Properties
Id
Gets the id of entity this default value refers to.
public ulong Id { get; }
Property Value
Type
Gets the type of this default value.
public SelectDefaultValueType Type { get; }
Property Value
Methods
FromChannel(IChannel)
Creates a new default value from a IChannel.
public static SelectMenuDefaultValue FromChannel(IChannel channel)
Parameters
channel
IChannel
Returns
FromRole(IRole)
Creates a new default value from a IRole.
public static SelectMenuDefaultValue FromRole(IRole role)
Parameters
role
IRole
Returns
FromUser(IUser)
Creates a new default value from a IUser.
public static SelectMenuDefaultValue FromUser(IUser user)
Parameters
user
IUser