Browse Source

Update summaries on rest interactions

pull/1923/head
quin lynch 3 years ago
parent
commit
de59f5a08a
2 changed files with 5 additions and 1 deletions
  1. +1
    -0
      src/Discord.Net.Rest/Entities/Interactions/RestInteraction.cs
  2. +4
    -1
      src/Discord.Net.Rest/Entities/Interactions/RestPingInteraction.cs

+ 1
- 0
src/Discord.Net.Rest/Entities/Interactions/RestInteraction.cs View File

@@ -197,6 +197,7 @@ namespace Discord.Rest
/// </returns> /// </returns>
public abstract Task<RestFollowupMessage> FollowupWithFileAsync(string filePath, string text = null, string fileName = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, public abstract Task<RestFollowupMessage> FollowupWithFileAsync(string filePath, string text = null, string fileName = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false,
AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent component = null, Embed embed = null); AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent component = null, Embed embed = null);

#region IDiscordInteraction #region IDiscordInteraction
/// <inheritdoc/> /// <inheritdoc/>
Task IDiscordInteraction.RespondAsync(string text, Embed[] embeds, bool isTTS, bool ephemeral, AllowedMentions allowedMentions, RequestOptions options, MessageComponent component, Embed embed) Task IDiscordInteraction.RespondAsync(string text, Embed[] embeds, bool isTTS, bool ephemeral, AllowedMentions allowedMentions, RequestOptions options, MessageComponent component, Embed embed)


+ 4
- 1
src/Discord.Net.Rest/Entities/Interactions/RestPingInteraction.cs View File

@@ -8,11 +8,14 @@ using Model = Discord.API.Interaction;


namespace Discord.Rest namespace Discord.Rest
{ {
/// <summary>
/// Represents a REST-based ping interaction.
/// </summary>
public class RestPingInteraction : RestInteraction, IDiscordInteraction public class RestPingInteraction : RestInteraction, IDiscordInteraction
{ {
internal override bool _hasResponded { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } internal override bool _hasResponded { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }


public RestPingInteraction(BaseDiscordClient client, ulong id)
internal RestPingInteraction(BaseDiscordClient client, ulong id)
: base(client, id) : base(client, id)
{ {
} }


Loading…
Cancel
Save