|
|
@@ -1,3 +1,6 @@ |
|
|
|
using System; |
|
|
|
using System.Threading.Tasks; |
|
|
|
|
|
|
|
namespace Discord |
|
|
|
{ |
|
|
|
/// <summary> |
|
|
@@ -6,7 +9,7 @@ namespace Discord |
|
|
|
public interface IComponentInteraction : IDiscordInteraction |
|
|
|
{ |
|
|
|
/// <summary> |
|
|
|
/// Gets the data received with this interaction, contains the button that was clicked. |
|
|
|
/// Gets the data received with this component interaction. |
|
|
|
/// </summary> |
|
|
|
new IComponentInteractionData Data { get; } |
|
|
|
|
|
|
@@ -14,5 +17,21 @@ namespace Discord |
|
|
|
/// Gets the message that contained the trigger for this interaction. |
|
|
|
/// </summary> |
|
|
|
IUserMessage Message { get; } |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Updates the message which this component resides in with the type <see cref="InteractionResponseType.UpdateMessage"/> |
|
|
|
/// </summary> |
|
|
|
/// <param name="func">A delegate containing the properties to modify the message with.</param> |
|
|
|
/// <param name="options">The options to be used when sending the request.</param> |
|
|
|
/// <returns>A task that represents the asynchronous operation of updating the message.</returns> |
|
|
|
Task UpdateAsync(Action<MessageProperties> func, RequestOptions options = null); |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Defers an interaction with the response type 5 (<see cref="InteractionResponseType.DeferredChannelMessageWithSource"/>). |
|
|
|
/// </summary> |
|
|
|
/// <param name="ephemeral"><see langword="true"/> to defer ephemerally, otherwise <see langword="false"/>.</param> |
|
|
|
/// <param name="options">The options to be used when sending the request.</param> |
|
|
|
/// <returns>A task that represents the asynchronous operation of acknowledging the interaction.</returns> |
|
|
|
Task DeferLoadingAsync(bool ephemeral = false, RequestOptions options = null); |
|
|
|
} |
|
|
|
} |