Table of Contents

Class SocketModalData

Namespace
Discord.WebSocket
Assembly
Discord.Net.WebSocket.dll

Represents data sent from a ModalSubmit.

public class SocketModalData : IModalInteractionData, IDiscordInteractionData
Inheritance
SocketModalData
Implements
Inherited Members

Properties

Attachments

Gets the attachment(s) of a FileUpload component within the modal.

public IReadOnlyCollection<IAttachment> Attachments { get; }

Property Value

IReadOnlyCollection<IAttachment>

Channels

Gets the channels(s) of a ChannelSelect component within the modal.

public IReadOnlyCollection<SocketChannel> Channels { get; }

Property Value

IReadOnlyCollection<SocketChannel>

Components

Gets the Modal's components submitted by the user.

public IReadOnlyCollection<SocketMessageComponentData> Components { get; }

Property Value

IReadOnlyCollection<SocketMessageComponentData>

CustomId

Gets the Modal's Custom Id.

public string CustomId { get; }

Property Value

string

Members

Gets the guild member(s) of a UserSelect or MentionableSelect component within the modal.

public IReadOnlyCollection<SocketGuildUser> Members { get; }

Property Value

IReadOnlyCollection<SocketGuildUser>

Roles

Gets the roles(s) of a RoleSelect or MentionableSelect component within the modal.

public IReadOnlyCollection<SocketRole> Roles { get; }

Property Value

IReadOnlyCollection<SocketRole>

Users

Gets the user(s) of a UserSelect or MentionableSelect component within the modal.

public IReadOnlyCollection<IUser> Users { get; }

Property Value

IReadOnlyCollection<IUser>

Remarks

Returns SocketUser if user is cached, RestUser otherwise.