Class ModalInteraction
- Namespace
- NetCord
- Assembly
- NetCord.dll
public class ModalInteraction : ComponentInteraction, IEquatable<Entity>, IInteraction, IEntity, ISpanFormattable, IFormattable, IJsonModel<JsonInteraction>
- Inheritance
-
ModalInteraction
- Implements
- Inherited Members
Constructors
ModalInteraction(JsonInteraction, Guild?, Func<IInteraction, InteractionCallback, RestRequestProperties?, CancellationToken, Task>, RestClient)
public ModalInteraction(JsonInteraction jsonModel, Guild? guild, Func<IInteraction, InteractionCallback, RestRequestProperties?, CancellationToken, Task> sendResponseAsync, RestClient client)
Parameters
jsonModel
JsonInteractionguild
GuildsendResponseAsync
Func<IInteraction, InteractionCallback, RestRequestProperties, CancellationToken, Task>client
RestClient
Properties
Data
public override ModalInteractionData Data { get; }
Property Value
Message
Available if the modal was opened in response to a component interaction.
public Message? Message { get; }