Class RestMessageComponentData
Represents data for a RestMessageComponent.
public class RestMessageComponentData : IComponentInteractionData, IDiscordInteractionData
- Inheritance
-
RestMessageComponentData
- Implements
- Inherited Members
Properties
Channels
Gets the channels(s) of a ChannelSelect interaction response. null if select type is different.
public IReadOnlyCollection<RestChannel> Channels { get; }
Property Value
CustomId
Gets the component's Custom Id that was clicked.
public string CustomId { get; }
Property Value
Members
Gets the guild member(s) of a UserSelect or MentionableSelect interaction response. null if type select is different.
public IReadOnlyCollection<RestGuildUser> Members { get; }
Property Value
Roles
Gets the roles(s) of a RoleSelect or MentionableSelect interaction response. null if select type is different.
public IReadOnlyCollection<RestRole> Roles { get; }
Property Value
Type
Gets the type of the component clicked.
public ComponentType Type { get; }
Property Value
Users
Gets the user(s) of a UserSelect or MentionableSelect interaction response. null if select type is different.
public IReadOnlyCollection<RestUser> Users { get; }
Property Value
Value
Gets the value of a TextInput interaction response.
public string Value { get; }
Property Value
Values
Gets the value(s) of a SelectMenu interaction response. null if select type is different.
public IReadOnlyCollection<string> Values { get; }