Table of Contents

Interface IModalInteractionData

Namespace
Discord
Assembly
Discord.Net.Core.dll

Represents the data sent with the IModalInteraction.

public interface IModalInteractionData : IDiscordInteractionData

Properties

Attachments

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

IReadOnlyCollection<IAttachment> Attachments { get; }

Property Value

IReadOnlyCollection<IAttachment>

Channels

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

IReadOnlyCollection<IChannel> Channels { get; }

Property Value

IReadOnlyCollection<IChannel>

Components

Gets the Modal components submitted by the user.

IReadOnlyCollection<IComponentInteractionData> Components { get; }

Property Value

IReadOnlyCollection<IComponentInteractionData>

CustomId

Gets the Modal's Custom Id.

string CustomId { get; }

Property Value

string

Members

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

IReadOnlyCollection<IGuildUser> Members { get; }

Property Value

IReadOnlyCollection<IGuildUser>

Roles

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

IReadOnlyCollection<IRole> Roles { get; }

Property Value

IReadOnlyCollection<IRole>

Users

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

IReadOnlyCollection<IUser> Users { get; }

Property Value

IReadOnlyCollection<IUser>