Skip to content

Commit

Permalink
interface now declares the helper methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Cenngo committed Jul 26, 2021
1 parent 35c071f commit 541b0be
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Discord.Net.Core/Entities/Interactions/IDiscordInteraction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,15 @@ public interface IDiscordInteraction : ISnowflakeEntity
/// read-only property, always 1.
/// </summary>
int Version { get; }

Task RespondAsync (string text = null, bool isTTS = false, Embed[] embeds = null, InteractionResponseType type = InteractionResponseType.ChannelMessageWithSource,
bool ephemeral = false, AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent component = null);

Task<IUserMessage> FollowupAsync (string text = null, bool isTTS = false, Embed[] embeds = null, InteractionResponseType type = InteractionResponseType.ChannelMessageWithSource,
bool ephemeral = false, AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent component = null);

Task<IUserMessage> GetOriginalResponseAsync (RequestOptions options = null);

Task AcknowledgeAsync (RequestOptions options = null);
}
}

0 comments on commit 541b0be

Please sign in to comment.