|
|
@@ -1,4 +1,5 @@ |
|
|
|
using System; |
|
|
|
using System.IO; |
|
|
|
using System.Threading.Tasks; |
|
|
|
|
|
|
|
namespace Discord |
|
|
@@ -64,6 +65,44 @@ namespace Discord |
|
|
|
Task<IUserMessage> FollowupAsync(string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, |
|
|
|
AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent component = null, Embed embed = null); |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Sends a followup message for this interaction. |
|
|
|
/// </summary> |
|
|
|
/// <param name="text">The text of the message to be sent.</param> |
|
|
|
/// <param name="fileStream">The file to upload.</param> |
|
|
|
/// <param name="fileName">The file name of the attachment.</param> |
|
|
|
/// <param name="embeds">A array of embeds to send with this response. Max 10.</param> |
|
|
|
/// <param name="isTTS"><see langword="true"/> if the message should be read out by a text-to-speech reader, otherwise <see langword="false"/>.</param> |
|
|
|
/// <param name="ephemeral"><see langword="true"/> if the response should be hidden to everyone besides the invoker of the command, otherwise <see langword="false"/>.</param> |
|
|
|
/// <param name="allowedMentions">The allowed mentions for this response.</param> |
|
|
|
/// <param name="options">The request options for this response.</param> |
|
|
|
/// <param name="component">A <see cref="MessageComponent"/> to be sent with this response.</param> |
|
|
|
/// <param name="embed">A single embed to send with this response. If this is passed alongside an array of embeds, the single embed will be ignored.</param> |
|
|
|
/// <returns> |
|
|
|
/// The sent message. |
|
|
|
/// </returns> |
|
|
|
public Task<IUserMessage> FollowupWithFileAsync(Stream fileStream, string fileName, string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, |
|
|
|
AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent component = null, Embed embed = null); |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Sends a followup message for this interaction. |
|
|
|
/// </summary> |
|
|
|
/// <param name="text">The text of the message to be sent.</param> |
|
|
|
/// <param name="filePath">The file to upload.</param> |
|
|
|
/// <param name="fileName">The file name of the attachment.</param> |
|
|
|
/// <param name="embeds">A array of embeds to send with this response. Max 10.</param> |
|
|
|
/// <param name="isTTS"><see langword="true"/> if the message should be read out by a text-to-speech reader, otherwise <see langword="false"/>.</param> |
|
|
|
/// <param name="ephemeral"><see langword="true"/> if the response should be hidden to everyone besides the invoker of the command, otherwise <see langword="false"/>.</param> |
|
|
|
/// <param name="allowedMentions">The allowed mentions for this response.</param> |
|
|
|
/// <param name="options">The request options for this response.</param> |
|
|
|
/// <param name="component">A <see cref="MessageComponent"/> to be sent with this response.</param> |
|
|
|
/// <param name="embed">A single embed to send with this response. If this is passed alongside an array of embeds, the single embed will be ignored.</param> |
|
|
|
/// <returns> |
|
|
|
/// The sent message. |
|
|
|
/// </returns> |
|
|
|
public Task<IUserMessage> 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); |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Gets the original response for this interaction. |
|
|
|
/// </summary> |
|
|
|