Table of Contents

Class RestModalData

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll

Represents data sent from a ModalSubmit Interaction.

public class RestModalData : IModalInteractionData, IDiscordInteractionData
Inheritance
RestModalData
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<RestChannel> Channels { get; }

Property Value

IReadOnlyCollection<RestChannel>

Components

Represents the Modals components submitted by the user.

public IReadOnlyCollection<RestMessageComponentData> Components { get; }

Property Value

IReadOnlyCollection<RestMessageComponentData>

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<RestGuildUser> Members { get; }

Property Value

IReadOnlyCollection<RestGuildUser>

Roles

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

public IReadOnlyCollection<RestRole> Roles { get; }

Property Value

IReadOnlyCollection<RestRole>

Users

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

public IReadOnlyCollection<RestUser> Users { get; }

Property Value

IReadOnlyCollection<RestUser>