Interface IComponentInteraction
Represents an interaction type for Message Components.
Inherited Members
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public interface IComponentInteraction : IDiscordInteraction, ISnowflakeEntity, IEntity<ulong>
Properties
| Improve this Doc View SourceData
Gets the data received with this component interaction.
Declaration
IComponentInteractionData Data { get; }
Property Value
Type | Description |
---|---|
IComponentInteractionData |
Message
Gets the message that contained the trigger for this interaction.
Declaration
IUserMessage Message { get; }
Property Value
Type | Description |
---|---|
IUserMessage |
Methods
| Improve this Doc View SourceDeferLoadingAsync(Boolean, RequestOptions)
Defers an interaction with the response type 5 (DeferredChannelMessageWithSource).
Declaration
Task DeferLoadingAsync(bool ephemeral = false, RequestOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
Boolean | ephemeral | true to defer ephemerally, otherwise false. |
RequestOptions | options | The options to be used when sending the request. |
Returns
Type | Description |
---|---|
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
Declaration
Task UpdateAsync(Action<MessageProperties> func, RequestOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
Action<MessageProperties> | func | A delegate containing the properties to modify the message with. |
RequestOptions | options | The options to be used when sending the request. |
Returns
Type | Description |
---|---|
Task | A task that represents the asynchronous operation of updating the message. |