Interface IComponentInteraction
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
Represents an interaction type for Message Components.
public interface IComponentInteraction : IDiscordInteraction, ISnowflakeEntity, IEntity<ulong>
- Inherited Members
- Extension Methods
Properties
Data
Gets the data received with this component interaction.
IComponentInteractionData Data { get; }
Property Value
Message
Gets the message that contained the trigger for this interaction.
IUserMessage Message { get; }
Property Value
Methods
DeferLoadingAsync(bool, RequestOptions)
Defers an interaction with the response type 5 (DeferredChannelMessageWithSource).
Task DeferLoadingAsync(bool ephemeral = false, RequestOptions options = null)
Parameters
ephemeral
booloptions
RequestOptionsThe options to be used when sending the request.
Returns
- Task
A task that represents the asynchronous operation of acknowledging the interaction.
UpdateAsync(Action<MessageProperties>, RequestOptions)
Updates the message which this component resides in with the type UpdateMessage
Task UpdateAsync(Action<MessageProperties> func, RequestOptions options = null)
Parameters
func
Action<MessageProperties>A delegate containing the properties to modify the message with.
options
RequestOptionsThe options to be used when sending the request.
Returns
- Task
A task that represents the asynchronous operation of updating the message.