diff --git a/src/Discord.Net.Commands/ModuleBase.cs b/src/Discord.Net.Commands/ModuleBase.cs
index 366cab450..159b44fb8 100644
--- a/src/Discord.Net.Commands/ModuleBase.cs
+++ b/src/Discord.Net.Commands/ModuleBase.cs
@@ -36,9 +36,11 @@ namespace Discord.Commands
/// If null, all mentioned roles and users will be notified.
///
/// The message references to be included. Used to reply to specific messages.
- protected virtual async Task ReplyAsync(string message = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
+ /// The message components to be included with this message. Used for interactions
+ /// A collection of stickers to send with the file.
+ protected virtual async Task ReplyAsync(string message = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
{
- return await Context.Channel.SendMessageAsync(message, isTTS, embed, options, allowedMentions, messageReference, component).ConfigureAwait(false);
+ return await Context.Channel.SendMessageAsync(message, isTTS, embed, options, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
}
///
/// The method to execute before executing the command.
diff --git a/src/Discord.Net.Core/Discord.Net.Core.xml b/src/Discord.Net.Core/Discord.Net.Core.xml
index 6d415630e..220f3fae4 100644
--- a/src/Discord.Net.Core/Discord.Net.Core.xml
+++ b/src/Discord.Net.Core/Discord.Net.Core.xml
@@ -1507,7 +1507,7 @@
Represents a generic channel that can send and receive messages.
-
+
Sends a message to this message channel.
@@ -1527,12 +1527,13 @@
The message references to be included. Used to reply to specific messages.
The message components to be included with this message. Used for interactions
+ A collection of stickers to send with the message.
A task that represents an asynchronous send operation for delivering the message. The task result
contains the sent message.
-
+
Sends a file to this message channel with an optional caption.
@@ -1566,12 +1567,13 @@
The message references to be included. Used to reply to specific messages.
The message components to be included with this message. Used for interactions
+ A collection of stickers to send with the file.
A task that represents an asynchronous send operation for delivering the message. The task result
contains the sent message.
-
+
Sends a file to this message channel with an optional caption.
@@ -1602,6 +1604,7 @@
The message references to be included. Used to reply to specific messages.
The message components to be included with this message. Used for interactions
+ A collection of stickers to send with the file.
A task that represents an asynchronous send operation for delivering the message. The task result
contains the sent message.
@@ -3639,6 +3642,18 @@
voice channel.
+
+
+ Creates a new stage channel in this guild.
+
+ The new name for the stage channel.
+ The delegate containing the properties to be applied to the channel upon its creation.
+ The options to be used when sending the request.
+
+ A task that represents the asynchronous creation operation. The task result contains the newly created
+ stage channel.
+
+
Creates a new channel category in this guild.
@@ -5205,7 +5220,7 @@
Builds this builder into a used to send your components.
- A that can be sent with .
+ A that can be sent with .
@@ -9652,21 +9667,10 @@
A read-only list with the tags of this sticker.
-
+
- Gets the asset hash of this sticker.
+ Gets the type of this sticker.
-
- A with the asset hash of this sticker.
-
-
-
-
- Gets the preview asset hash of this sticker.
-
-
- A with the preview asset hash of this sticker.
-
@@ -9676,6 +9680,16 @@
A with the format type of this sticker.
+
+
+ Gets whether this guild sticker can be used, may be false due to loss of Server Boosts
+
+
+
+
+ Gets the standard sticker's sort order within its pack
+
+
Gets the image url for this sticker.
@@ -9762,6 +9776,21 @@
Gets or sets the tags of the sticker.
+
+
+ Represents a type of sticker
+
+
+
+
+ Represents a discord standard sticker, this type of sticker cannot be modified by an application.
+
+
+
+
+ Represents a sticker that was created within a guild.
+
+
Represents a Discord Team.
diff --git a/src/Discord.Net.Core/Entities/Channels/IMessageChannel.cs b/src/Discord.Net.Core/Entities/Channels/IMessageChannel.cs
index 11998c28b..1fffea6e9 100644
--- a/src/Discord.Net.Core/Entities/Channels/IMessageChannel.cs
+++ b/src/Discord.Net.Core/Entities/Channels/IMessageChannel.cs
@@ -29,11 +29,12 @@ namespace Discord
///
/// The message references to be included. Used to reply to specific messages.
/// The message components to be included with this message. Used for interactions
+ /// A collection of stickers to send with the message.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
///
- Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null);
+ Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null);
///
/// Sends a file to this message channel with an optional caption.
///
@@ -67,11 +68,12 @@ namespace Discord
///
/// The message references to be included. Used to reply to specific messages.
/// The message components to be included with this message. Used for interactions
+ /// A collection of stickers to send with the file.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
///
- Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null);
+ Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null);
///
/// Sends a file to this message channel with an optional caption.
///
@@ -102,11 +104,12 @@ namespace Discord
///
/// The message references to be included. Used to reply to specific messages.
/// The message components to be included with this message. Used for interactions
+ /// A collection of stickers to send with the file.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
///
- Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null);
+ Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null);
///
/// Gets a message from this message channel.
diff --git a/src/Discord.Net.Core/Entities/Stickers/ISticker.cs b/src/Discord.Net.Core/Entities/Stickers/ISticker.cs
index e16e03990..6d0eee1b4 100644
--- a/src/Discord.Net.Core/Entities/Stickers/ISticker.cs
+++ b/src/Discord.Net.Core/Entities/Stickers/ISticker.cs
@@ -15,7 +15,7 @@ namespace Discord
///
/// A snowflake ID associated with this sticker.
///
- ulong Id { get; }
+ new ulong Id { get; }
///
/// Gets the ID of the pack of this sticker.
///
@@ -29,7 +29,7 @@ namespace Discord
///
/// A with the name of this sticker.
///
- string Name { get; }
+ new string Name { get; }
///
/// Gets the description of this sticker.
///
@@ -45,27 +45,26 @@ namespace Discord
///
IReadOnlyCollection Tags { get; }
///
- /// Gets the asset hash of this sticker.
+ /// Gets the type of this sticker.
///
- ///
- /// A with the asset hash of this sticker.
- ///
- string Asset { get; }
- ///
- /// Gets the preview asset hash of this sticker.
- ///
- ///
- /// A with the preview asset hash of this sticker.
- ///
- string PreviewAsset { get; }
+ StickerType Type { get; }
///
/// Gets the format type of this sticker.
///
///
/// A with the format type of this sticker.
///
- StickerFormatType Format { get; }
+ new StickerFormatType Format { get; }
+ ///
+ /// Gets whether this guild sticker can be used, may be false due to loss of Server Boosts
+ ///
+ bool? Available { get; }
+
+ ///
+ /// Gets the standard sticker's sort order within its pack
+ ///
+ int? SortOrder { get; }
///
/// Gets the image url for this sticker.
///
diff --git a/src/Discord.Net.Core/Entities/Stickers/StickerType.cs b/src/Discord.Net.Core/Entities/Stickers/StickerType.cs
new file mode 100644
index 000000000..35946df7a
--- /dev/null
+++ b/src/Discord.Net.Core/Entities/Stickers/StickerType.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Discord
+{
+ ///
+ /// Represents a type of sticker
+ ///
+ public enum StickerType
+ {
+ ///
+ /// Represents a discord standard sticker, this type of sticker cannot be modified by an application.
+ ///
+ Standard = 1,
+
+ ///
+ /// Represents a sticker that was created within a guild.
+ ///
+ Guild = 2,
+ }
+}
diff --git a/src/Discord.Net.Rest/API/Common/Sticker.cs b/src/Discord.Net.Rest/API/Common/Sticker.cs
index da171a802..490c16dbe 100644
--- a/src/Discord.Net.Rest/API/Common/Sticker.cs
+++ b/src/Discord.Net.Rest/API/Common/Sticker.cs
@@ -15,15 +15,17 @@ namespace Discord.API
public string Desription { get; set; }
[JsonProperty("tags")]
public Optional Tags { get; set; }
- [JsonProperty("asset")]
- public string Asset { get; set; }
- [JsonProperty("preview_asset")]
- public string PreviewAsset { get; set; }
+ [JsonProperty("type")]
+ public StickerType Type { get; set; }
[JsonProperty("format_type")]
public StickerFormatType FormatType { get; set; }
+ [JsonProperty("available")]
+ public bool? Available { get; set; }
[JsonProperty("guild_id")]
public Optional GuildId { get; set; }
[JsonProperty("user")]
public Optional User { get; set; }
+ [JsonProperty("sort_value")]
+ public int? SortValue { get; set; }
}
}
diff --git a/src/Discord.Net.Rest/API/Rest/CreateMessageParams.cs b/src/Discord.Net.Rest/API/Rest/CreateMessageParams.cs
index 0d6710a03..b8ee153c9 100644
--- a/src/Discord.Net.Rest/API/Rest/CreateMessageParams.cs
+++ b/src/Discord.Net.Rest/API/Rest/CreateMessageParams.cs
@@ -26,6 +26,10 @@ namespace Discord.API.Rest
[JsonProperty("components")]
public Optional Components { get; set; }
+
+ [JsonProperty("sticker_ids")]
+ public Optional Stickers { get; set; }
+
public CreateMessageParams(string content)
{
Content = content;
diff --git a/src/Discord.Net.Rest/API/Rest/UploadFileParams.cs b/src/Discord.Net.Rest/API/Rest/UploadFileParams.cs
index 31a975aab..1ee918ae7 100644
--- a/src/Discord.Net.Rest/API/Rest/UploadFileParams.cs
+++ b/src/Discord.Net.Rest/API/Rest/UploadFileParams.cs
@@ -22,6 +22,7 @@ namespace Discord.API.Rest
public Optional AllowedMentions { get; set; }
public Optional MessageReference { get; set; }
public Optional MessageComponent { get; set; }
+ public Optional Stickers { get; set; }
public bool IsSpoiler { get; set; } = false;
public UploadFileParams(Stream file)
@@ -54,6 +55,8 @@ namespace Discord.API.Rest
payload["hasSpoiler"] = IsSpoiler.ToString();
if (MessageReference.IsSpecified)
payload["message_reference"] = MessageReference.Value;
+ if (Stickers.IsSpecified)
+ payload["sticker_ids"] = Stickers.Value;
var json = new StringBuilder();
using (var text = new StringWriter(json))
diff --git a/src/Discord.Net.Rest/Discord.Net.Rest.xml b/src/Discord.Net.Rest/Discord.Net.Rest.xml
index 4e2846c9e..43c2a05bc 100644
--- a/src/Discord.Net.Rest/Discord.Net.Rest.xml
+++ b/src/Discord.Net.Rest/Discord.Net.Rest.xml
@@ -1718,10 +1718,10 @@
must be lesser than 86400.
-
+
Message content is too long, length must be less or equal to .
-
+
is a zero-length string, contains only white space, or contains one or more
invalid characters as defined by .
@@ -1747,7 +1747,7 @@
An I/O error occurred while opening the file.
Message content is too long, length must be less or equal to .
-
+
Message content is too long, length must be less or equal to .
@@ -1764,12 +1764,12 @@
Represents a REST-based channel that can send and receive messages.
-
+
Sends a message to this message channel.
- This method follows the same behavior as described in .
+ This method follows the same behavior as described in .
Please visit its documentation for more details on this method.
The message to be sent.
@@ -1781,18 +1781,20 @@
If null, all mentioned roles and users will be notified.
The message references to be included. Used to reply to specific messages.
+ The message components to be included with this message. Used for interactions
+ A collection of stickers to send with the message.
A task that represents an asynchronous send operation for delivering the message. The task result
contains the sent message.
-
+
Sends a file to this message channel with an optional caption.
This method follows the same behavior as described in
- . Please visit
+ . Please visit
its documentation for more details on this method.
The file path of the file.
@@ -1806,17 +1808,19 @@
If null, all mentioned roles and users will be notified.
The message references to be included. Used to reply to specific messages.
+ The message components to be included with this message. Used for interactions
+ A collection of stickers to send with the message.
A task that represents an asynchronous send operation for delivering the message. The task result
contains the sent message.
-
+
Sends a file to this message channel with an optional caption.
- This method follows the same behavior as described in .
+ This method follows the same behavior as described in .
Please visit its documentation for more details on this method.
The of the file to be sent.
@@ -1831,6 +1835,8 @@
If null, all mentioned roles and users will be notified.
The message references to be included. Used to reply to specific messages.
+ The message components to be included with this message. Used for interactions
+ A collection of stickers to send with the message.
A task that represents an asynchronous send operation for delivering the message. The task result
contains the sent message.
@@ -2010,11 +2016,11 @@
-
+
Message content is too long, length must be less or equal to .
-
+
is a zero-length string, contains only white space, or contains one or more
@@ -2041,7 +2047,7 @@
An I/O error occurred while opening the file.
Message content is too long, length must be less or equal to .
-
+
Message content is too long, length must be less or equal to .
@@ -2092,13 +2098,13 @@
-
+
-
+
-
+
@@ -2148,11 +2154,11 @@
-
+
Message content is too long, length must be less or equal to .
-
+
is a zero-length string, contains only white space, or contains one or more
@@ -2179,7 +2185,7 @@
An I/O error occurred while opening the file.
Message content is too long, length must be less or equal to .
-
+
Message content is too long, length must be less or equal to .
@@ -2438,11 +2444,11 @@
-
+
Message content is too long, length must be less or equal to .
-
+
is a zero-length string, contains only white space, or contains one or more
@@ -2469,7 +2475,7 @@
An I/O error occurred while opening the file.
Message content is too long, length must be less or equal to .
-
+
Message content is too long, length must be less or equal to .
@@ -2602,13 +2608,13 @@
-
+
-
+
-
+
@@ -3347,6 +3353,18 @@
The created voice channel.
+
+
+ Creates a new stage channel in this guild.
+
+ The new name for the stage channel.
+ The delegate containing the properties to be applied to the channel upon its creation.
+ The options to be used when sending the request.
+
+ A task that represents the asynchronous creation operation. The task result contains the newly created
+ stage channel.
+
+
Creates a category channel with the provided name.
@@ -3751,6 +3769,9 @@
+
+
+
@@ -4472,10 +4493,13 @@
-
+
+
+
+
-
+
diff --git a/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs b/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs
index 98715bfce..bf95cfa6d 100644
--- a/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs
+++ b/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs
@@ -264,7 +264,7 @@ namespace Discord.Rest
/// Message content is too long, length must be less or equal to .
public static async Task SendMessageAsync(IMessageChannel channel, BaseDiscordClient client,
- string text, bool isTTS, Embed embed, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, RequestOptions options)
+ string text, bool isTTS, Embed embed, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers, RequestOptions options)
{
Preconditions.AtMost(allowedMentions?.RoleIds?.Count ?? 0, 100, nameof(allowedMentions.RoleIds), "A max of 100 role Ids are allowed.");
Preconditions.AtMost(allowedMentions?.UserIds?.Count ?? 0, 100, nameof(allowedMentions.UserIds), "A max of 100 user Ids are allowed.");
@@ -285,7 +285,12 @@ namespace Discord.Rest
}
}
- var args = new CreateMessageParams(text) { IsTTS = isTTS, Embed = embed?.ToModel(), AllowedMentions = allowedMentions?.ToModel(), MessageReference = messageReference?.ToModel(), Components = component?.Components.Select(x => new API.ActionRowComponent(x)).ToArray() ?? Optional.Unspecified };
+ if(stickers != null)
+ {
+ Preconditions.AtMost(stickers.Length, 3, nameof(stickers), "A max of 3 stickers are allowed.");
+ }
+
+ var args = new CreateMessageParams(text) { IsTTS = isTTS, Embed = embed?.ToModel(), AllowedMentions = allowedMentions?.ToModel(), MessageReference = messageReference?.ToModel(), Components = component?.Components.Select(x => new API.ActionRowComponent(x)).ToArray() ?? Optional.Unspecified, Stickers = stickers?.Any() ?? false ? stickers.Select(x => x.Id).ToArray() : Optional.Unspecified};
var model = await client.ApiClient.CreateMessageAsync(channel.Id, args, options).ConfigureAwait(false);
return RestUserMessage.Create(client, channel, client.CurrentUser, model);
}
@@ -315,16 +320,16 @@ namespace Discord.Rest
/// An I/O error occurred while opening the file.
/// Message content is too long, length must be less or equal to .
public static async Task SendFileAsync(IMessageChannel channel, BaseDiscordClient client,
- string filePath, string text, bool isTTS, Embed embed, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, RequestOptions options, bool isSpoiler)
+ string filePath, string text, bool isTTS, Embed embed, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers, RequestOptions options, bool isSpoiler)
{
string filename = Path.GetFileName(filePath);
using (var file = File.OpenRead(filePath))
- return await SendFileAsync(channel, client, file, filename, text, isTTS, embed, allowedMentions, messageReference, component, options, isSpoiler).ConfigureAwait(false);
+ return await SendFileAsync(channel, client, file, filename, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options, isSpoiler).ConfigureAwait(false);
}
/// Message content is too long, length must be less or equal to .
public static async Task SendFileAsync(IMessageChannel channel, BaseDiscordClient client,
- Stream stream, string filename, string text, bool isTTS, Embed embed, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, RequestOptions options, bool isSpoiler)
+ Stream stream, string filename, string text, bool isTTS, Embed embed, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers, RequestOptions options, bool isSpoiler)
{
Preconditions.AtMost(allowedMentions?.RoleIds?.Count ?? 0, 100, nameof(allowedMentions.RoleIds), "A max of 100 role Ids are allowed.");
Preconditions.AtMost(allowedMentions?.UserIds?.Count ?? 0, 100, nameof(allowedMentions.UserIds), "A max of 100 user Ids are allowed.");
@@ -345,7 +350,12 @@ namespace Discord.Rest
}
}
- var args = new UploadFileParams(stream) { Filename = filename, Content = text, IsTTS = isTTS, Embed = embed?.ToModel() ?? Optional.Unspecified, AllowedMentions = allowedMentions?.ToModel() ?? Optional.Unspecified, MessageReference = messageReference?.ToModel() ?? Optional.Unspecified, MessageComponent = component?.Components.Select(x => new API.ActionRowComponent(x)).ToArray() ?? Optional.Unspecified, IsSpoiler = isSpoiler };
+ if (stickers != null)
+ {
+ Preconditions.AtMost(stickers.Length, 3, nameof(stickers), "A max of 3 stickers are allowed.");
+ }
+
+ var args = new UploadFileParams(stream) { Filename = filename, Content = text, IsTTS = isTTS, Embed = embed?.ToModel() ?? Optional.Unspecified, AllowedMentions = allowedMentions?.ToModel() ?? Optional.Unspecified, MessageReference = messageReference?.ToModel() ?? Optional.Unspecified, MessageComponent = component?.Components.Select(x => new API.ActionRowComponent(x)).ToArray() ?? Optional.Unspecified, IsSpoiler = isSpoiler, Stickers = stickers?.Any() ?? false ? stickers.Select(x => x.Id).ToArray() : Optional.Unspecified };
var model = await client.ApiClient.UploadFileAsync(channel.Id, args, options).ConfigureAwait(false);
return RestUserMessage.Create(client, channel, client.CurrentUser, model);
}
diff --git a/src/Discord.Net.Rest/Entities/Channels/IRestMessageChannel.cs b/src/Discord.Net.Rest/Entities/Channels/IRestMessageChannel.cs
index 919360ce8..b7f494055 100644
--- a/src/Discord.Net.Rest/Entities/Channels/IRestMessageChannel.cs
+++ b/src/Discord.Net.Rest/Entities/Channels/IRestMessageChannel.cs
@@ -25,17 +25,19 @@ namespace Discord.Rest
/// If null, all mentioned roles and users will be notified.
///
/// The message references to be included. Used to reply to specific messages.
+ /// The message components to be included with this message. Used for interactions
+ /// A collection of stickers to send with the message.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
///
- new Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null);
+ new Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null);
///
/// Sends a file to this message channel with an optional caption.
///
///
/// This method follows the same behavior as described in
- /// . Please visit
+ /// . Please visit
/// its documentation for more details on this method.
///
/// The file path of the file.
@@ -49,16 +51,18 @@ namespace Discord.Rest
/// If null, all mentioned roles and users will be notified.
///
/// The message references to be included. Used to reply to specific messages.
+ /// The message components to be included with this message. Used for interactions
+ /// A collection of stickers to send with the message.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
///
- new Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null);
+ new Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null);
///
/// Sends a file to this message channel with an optional caption.
///
///
- /// This method follows the same behavior as described in .
+ /// This method follows the same behavior as described in .
/// Please visit its documentation for more details on this method.
///
/// The of the file to be sent.
@@ -73,11 +77,13 @@ namespace Discord.Rest
/// If null, all mentioned roles and users will be notified.
///
/// The message references to be included. Used to reply to specific messages.
+ /// The message components to be included with this message. Used for interactions
+ /// A collection of stickers to send with the message.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
///
- new Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null);
+ new Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null);
///
/// Gets a message from this message channel.
diff --git a/src/Discord.Net.Rest/Entities/Channels/RestDMChannel.cs b/src/Discord.Net.Rest/Entities/Channels/RestDMChannel.cs
index 7bfd73ee6..6fe2c862c 100644
--- a/src/Discord.Net.Rest/Entities/Channels/RestDMChannel.cs
+++ b/src/Discord.Net.Rest/Entities/Channels/RestDMChannel.cs
@@ -93,8 +93,8 @@ namespace Discord.Rest
///
/// Message content is too long, length must be less or equal to .
- public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, embed, allowedMentions, messageReference, component, options);
+ public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options);
///
///
@@ -121,12 +121,12 @@ namespace Discord.Rest
/// is in an invalid format.
/// An I/O error occurred while opening the file.
/// Message content is too long, length must be less or equal to .
- public Task SendFileAsync(string filePath, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, embed, allowedMentions, messageReference, component, options, isSpoiler);
+ public Task SendFileAsync(string filePath, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options, isSpoiler);
///
/// Message content is too long, length must be less or equal to .
- public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, embed, allowedMentions, messageReference, component, options, isSpoiler);
+ public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options, isSpoiler);
///
public Task DeleteMessageAsync(ulong messageId, RequestOptions options = null)
@@ -204,14 +204,14 @@ namespace Discord.Rest
async Task> IMessageChannel.GetPinnedMessagesAsync(RequestOptions options)
=> await GetPinnedMessagesAsync(options).ConfigureAwait(false);
///
- async Task IMessageChannel.SendFileAsync(string filePath, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendFileAsync(filePath, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendFileAsync(string filePath, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendFileAsync(filePath, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
///
- async Task IMessageChannel.SendFileAsync(Stream stream, string filename, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendFileAsync(stream, filename, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendFileAsync(Stream stream, string filename, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendFileAsync(stream, filename, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
///
- async Task IMessageChannel.SendMessageAsync(string text, bool isTTS, Embed embed, RequestOptions options, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendMessageAsync(text, isTTS, embed, options, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendMessageAsync(string text, bool isTTS, Embed embed, RequestOptions options, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendMessageAsync(text, isTTS, embed, options, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
//IChannel
///
diff --git a/src/Discord.Net.Rest/Entities/Channels/RestGroupChannel.cs b/src/Discord.Net.Rest/Entities/Channels/RestGroupChannel.cs
index fb7a7a215..25d34cd0b 100644
--- a/src/Discord.Net.Rest/Entities/Channels/RestGroupChannel.cs
+++ b/src/Discord.Net.Rest/Entities/Channels/RestGroupChannel.cs
@@ -99,8 +99,8 @@ namespace Discord.Rest
///
/// Message content is too long, length must be less or equal to .
- public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, embed, allowedMentions, messageReference, component, options);
+ public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options);
///
///
@@ -127,12 +127,12 @@ namespace Discord.Rest
/// is in an invalid format.
/// An I/O error occurred while opening the file.
/// Message content is too long, length must be less or equal to .
- public Task SendFileAsync(string filePath, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, embed, allowedMentions, messageReference, component, options, isSpoiler);
+ public Task SendFileAsync(string filePath, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options, isSpoiler);
///
/// Message content is too long, length must be less or equal to .
- public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, embed, allowedMentions, messageReference, component, options, isSpoiler);
+ public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, embed, allowedMentions, messageReference, component, stickers,options, isSpoiler);
///
public Task TriggerTypingAsync(RequestOptions options = null)
@@ -182,14 +182,14 @@ namespace Discord.Rest
async Task> IMessageChannel.GetPinnedMessagesAsync(RequestOptions options)
=> await GetPinnedMessagesAsync(options).ConfigureAwait(false);
- async Task IMessageChannel.SendFileAsync(string filePath, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendFileAsync(filePath, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendFileAsync(string filePath, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendFileAsync(filePath, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
- async Task IMessageChannel.SendFileAsync(Stream stream, string filename, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendFileAsync(stream, filename, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendFileAsync(Stream stream, string filename, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendFileAsync(stream, filename, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
- async Task IMessageChannel.SendMessageAsync(string text, bool isTTS, Embed embed, RequestOptions options, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendMessageAsync(text, isTTS, embed, options, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendMessageAsync(string text, bool isTTS, Embed embed, RequestOptions options, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendMessageAsync(text, isTTS, embed, options, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
//IAudioChannel
///
diff --git a/src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs b/src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs
index 6343aed03..ffe989dbf 100644
--- a/src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs
+++ b/src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs
@@ -102,8 +102,8 @@ namespace Discord.Rest
///
/// Message content is too long, length must be less or equal to .
- public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, embed, allowedMentions, messageReference, component, options);
+ public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options);
///
///
@@ -130,13 +130,13 @@ namespace Discord.Rest
/// is in an invalid format.
/// An I/O error occurred while opening the file.
/// Message content is too long, length must be less or equal to .
- public Task SendFileAsync(string filePath, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, embed, allowedMentions, messageReference, component, options, isSpoiler);
+ public Task SendFileAsync(string filePath, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options, isSpoiler);
///
/// Message content is too long, length must be less or equal to .
- public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, embed, allowedMentions, messageReference, component, options, isSpoiler);
+ public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options, isSpoiler);
///
public Task DeleteMessageAsync(ulong messageId, RequestOptions options = null)
@@ -315,15 +315,15 @@ namespace Discord.Rest
=> await GetPinnedMessagesAsync(options).ConfigureAwait(false);
///
- async Task IMessageChannel.SendFileAsync(string filePath, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendFileAsync(filePath, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendFileAsync(string filePath, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendFileAsync(filePath, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
///
- async Task IMessageChannel.SendFileAsync(Stream stream, string filename, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendFileAsync(stream, filename, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendFileAsync(Stream stream, string filename, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendFileAsync(stream, filename, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
///
- async Task IMessageChannel.SendMessageAsync(string text, bool isTTS, Embed embed, RequestOptions options, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendMessageAsync(text, isTTS, embed, options, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendMessageAsync(string text, bool isTTS, Embed embed, RequestOptions options, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendMessageAsync(text, isTTS, embed, options, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
//IGuildChannel
///
diff --git a/src/Discord.Net.Rest/Entities/Messages/Sticker.cs b/src/Discord.Net.Rest/Entities/Messages/Sticker.cs
index 6a5d35a3b..46dbc3418 100644
--- a/src/Discord.Net.Rest/Entities/Messages/Sticker.cs
+++ b/src/Discord.Net.Rest/Entities/Messages/Sticker.cs
@@ -10,19 +10,21 @@ namespace Discord.Rest
public class Sticker : RestEntity, ISticker
{
///
- public ulong PackId { get; internal set; }
+ public ulong PackId { get; protected set; }
///
- public string Name { get; internal set; }
+ public string Name { get; protected set; }
///
- public string Description { get; internal set; }
+ public string Description { get; protected set; }
///
- public IReadOnlyCollection Tags { get; internal set; }
+ public IReadOnlyCollection Tags { get; protected set; }
///
- public string Asset { get; internal set; }
+ public StickerType Type { get; protected set; }
///
- public string PreviewAsset { get; internal set; }
+ public bool? Available { get; protected set; }
///
- public StickerFormatType Format { get; internal set; }
+ public int? SortOrder { get; protected set; }
+ ///
+ public StickerFormatType Format { get; protected set; }
///
public string GetStickerUrl()
@@ -43,8 +45,9 @@ namespace Discord.Rest
Name = model.Name;
Description = model.Desription;
Tags = model.Tags.IsSpecified ? model.Tags.Value.Split(',').Select(x => x.Trim()).ToArray() : new string[0];
- Asset = model.Asset;
- PreviewAsset = model.PreviewAsset;
+ Type = model.Type;
+ SortOrder = model.SortValue;
+ Available = model.Available;
Format = model.FormatType;
}
diff --git a/src/Discord.Net.WebSocket/Discord.Net.WebSocket.xml b/src/Discord.Net.WebSocket/Discord.Net.WebSocket.xml
index 6c83a737a..610555b61 100644
--- a/src/Discord.Net.WebSocket/Discord.Net.WebSocket.xml
+++ b/src/Discord.Net.WebSocket/Discord.Net.WebSocket.xml
@@ -1480,12 +1480,12 @@
A read-only collection of WebSocket-based messages.
-
+
Sends a message to this message channel.
- This method follows the same behavior as described in .
+ This method follows the same behavior as described in .
Please visit its documentation for more details on this method.
The message to be sent.
@@ -1498,17 +1498,18 @@
The message references to be included. Used to reply to specific messages.
The message components to be included with this message. Used for interactions
+ A collection of stickers to send with the message.
A task that represents an asynchronous send operation for delivering the message. The task result
contains the sent message.
-
+
Sends a file to this message channel with an optional caption.
- This method follows the same behavior as described in .
+ This method follows the same behavior as described in .
Please visit its documentation for more details on this method.
The file path of the file.
@@ -1523,17 +1524,18 @@
The message references to be included. Used to reply to specific messages.
The message components to be included with this message. Used for interactions
+ A collection of stickers to send with the file.
A task that represents an asynchronous send operation for delivering the message. The task result
contains the sent message.
-
+
Sends a file to this message channel with an optional caption.
- This method follows the same behavior as described in .
+ This method follows the same behavior as described in .
Please visit its documentation for more details on this method.
The of the file to be sent.
@@ -1549,6 +1551,7 @@
The message references to be included. Used to reply to specific messages.
The message components to be included with this message. Used for interactions
+ A collection of stickers to send with the file.
A task that represents an asynchronous send operation for delivering the message. The task result
contains the sent message.
@@ -1831,14 +1834,14 @@
-
+
Message content is too long, length must be less or equal to .
-
+
-
+
Message content is too long, length must be less or equal to .
@@ -1901,13 +1904,13 @@
-
+
-
+
-
+
@@ -2022,15 +2025,16 @@
-
+
Message content is too long, length must be less or equal to .
-
+
-
+
+ Message content is too long, length must be less or equal to .
@@ -2088,13 +2092,13 @@
-
+
-
+
-
+
@@ -2478,14 +2482,14 @@
-
+
Message content is too long, length must be less or equal to .
-
+
-
+
Message content is too long, length must be less or equal to .
@@ -2591,13 +2595,13 @@
-
+
-
+
-
+
@@ -3328,6 +3332,18 @@
voice channel.
+
+
+ Creates a new stage channel in this guild.
+
+ The new name for the stage channel.
+ The delegate containing the properties to be applied to the channel upon its creation.
+ The options to be used when sending the request.
+
+ A task that represents the asynchronous creation operation. The task result contains the newly created
+ stage channel.
+
+
Creates a new channel category in this guild.
@@ -3746,6 +3762,9 @@
+
+
+
@@ -3947,7 +3966,7 @@
- The value(s) of a interaction response.
+ The value(s) of a interaction response.
@@ -4252,14 +4271,6 @@
The request options for this async request.
A that represents the initial response.
-
-
- Acknowledges this interaction.
-
-
- A task that represents the asynchronous operation of acknowledging the interaction.
-
-
Acknowledges this interaction.
@@ -4805,7 +4816,7 @@
- Gets the guild the sticker lives in.
+ Gets the guild the sticker was created in.
@@ -4834,13 +4845,16 @@
-
+
-
+
-
+
+
+
+
@@ -4854,9 +4868,6 @@
Represents an unknown sticker received over the gateway.
-
-
-
@@ -4866,7 +4877,13 @@
-
+
+
+
+
+
+
+
diff --git a/src/Discord.Net.WebSocket/Entities/Channels/ISocketMessageChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/ISocketMessageChannel.cs
index fb25ddbd7..7a82b2c3f 100644
--- a/src/Discord.Net.WebSocket/Entities/Channels/ISocketMessageChannel.cs
+++ b/src/Discord.Net.WebSocket/Entities/Channels/ISocketMessageChannel.cs
@@ -35,16 +35,17 @@ namespace Discord.WebSocket
///
/// The message references to be included. Used to reply to specific messages.
/// The message components to be included with this message. Used for interactions
+ /// A collection of stickers to send with the message.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
///
- new Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null);
+ new Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null);
///
/// Sends a file to this message channel with an optional caption.
///
///
- /// This method follows the same behavior as described in .
+ /// This method follows the same behavior as described in .
/// Please visit its documentation for more details on this method.
///
/// The file path of the file.
@@ -59,16 +60,17 @@ namespace Discord.WebSocket
///
/// The message references to be included. Used to reply to specific messages.
/// The message components to be included with this message. Used for interactions
+ /// A collection of stickers to send with the file.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
///
- new Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null);
+ new Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null);
///
/// Sends a file to this message channel with an optional caption.
///
///
- /// This method follows the same behavior as described in .
+ /// This method follows the same behavior as described in .
/// Please visit its documentation for more details on this method.
///
/// The of the file to be sent.
@@ -84,11 +86,12 @@ namespace Discord.WebSocket
///
/// The message references to be included. Used to reply to specific messages.
/// The message components to be included with this message. Used for interactions
+ /// A collection of stickers to send with the file.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
///
- new Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null);
+ new Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null);
///
/// Gets a cached message from this channel.
diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketDMChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketDMChannel.cs
index fd3fd1002..27e720669 100644
--- a/src/Discord.Net.WebSocket/Entities/Channels/SocketDMChannel.cs
+++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketDMChannel.cs
@@ -137,16 +137,16 @@ namespace Discord.WebSocket
///
/// Message content is too long, length must be less or equal to .
- public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, embed, allowedMentions, messageReference, component, options);
+ public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options);
///
- public Task SendFileAsync(string filePath, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, embed, allowedMentions, messageReference, component, options, isSpoiler);
+ public Task SendFileAsync(string filePath, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options, isSpoiler);
///
/// Message content is too long, length must be less or equal to .
- public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, embed, allowedMentions, messageReference, component, options, isSpoiler);
+ public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options, isSpoiler);
///
public Task DeleteMessageAsync(ulong messageId, RequestOptions options = null)
=> ChannelHelper.DeleteMessageAsync(this, messageId, Discord, options);
@@ -238,14 +238,14 @@ namespace Discord.WebSocket
async Task> IMessageChannel.GetPinnedMessagesAsync(RequestOptions options)
=> await GetPinnedMessagesAsync(options).ConfigureAwait(false);
///
- async Task IMessageChannel.SendFileAsync(string filePath, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendFileAsync(filePath, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendFileAsync(string filePath, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendFileAsync(filePath, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
///
- async Task IMessageChannel.SendFileAsync(Stream stream, string filename, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendFileAsync(stream, filename, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendFileAsync(Stream stream, string filename, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendFileAsync(stream, filename, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
///
- async Task IMessageChannel.SendMessageAsync(string text, bool isTTS, Embed embed, RequestOptions options, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendMessageAsync(text, isTTS, embed, options, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendMessageAsync(string text, bool isTTS, Embed embed, RequestOptions options, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendMessageAsync(text, isTTS, embed, options, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
//IChannel
///
diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketGroupChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketGroupChannel.cs
index c7adc994e..a97806be8 100644
--- a/src/Discord.Net.WebSocket/Entities/Channels/SocketGroupChannel.cs
+++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketGroupChannel.cs
@@ -171,15 +171,16 @@ namespace Discord.WebSocket
///
/// Message content is too long, length must be less or equal to .
- public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, embed, allowedMentions, messageReference, component, options);
+ public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options);
///
- public Task SendFileAsync(string filePath, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, embed, allowedMentions, messageReference, component, options, isSpoiler);
+ public Task SendFileAsync(string filePath, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options, isSpoiler);
///
- public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, embed, allowedMentions, messageReference, component, options, isSpoiler);
+ /// Message content is too long, length must be less or equal to .
+ public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options, isSpoiler);
///
public Task DeleteMessageAsync(ulong messageId, RequestOptions options = null)
@@ -305,14 +306,14 @@ namespace Discord.WebSocket
=> await GetPinnedMessagesAsync(options).ConfigureAwait(false);
///
- async Task IMessageChannel.SendFileAsync(string filePath, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendFileAsync(filePath, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendFileAsync(string filePath, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendFileAsync(filePath, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
///
- async Task IMessageChannel.SendFileAsync(Stream stream, string filename, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendFileAsync(stream, filename, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendFileAsync(Stream stream, string filename, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendFileAsync(stream, filename, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
///
- async Task IMessageChannel.SendMessageAsync(string text, bool isTTS, Embed embed, RequestOptions options, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendMessageAsync(text, isTTS, embed, options, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendMessageAsync(string text, bool isTTS, Embed embed, RequestOptions options, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendMessageAsync(text, isTTS, embed, options, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
//IAudioChannel
///
diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs
index a0d14fdab..0bc62168f 100644
--- a/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs
+++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs
@@ -209,17 +209,17 @@ namespace Discord.WebSocket
///
/// Message content is too long, length must be less or equal to .
- public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, embed, allowedMentions, messageReference, component, options);
+ public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options);
///
- public Task SendFileAsync(string filePath, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, embed, allowedMentions, messageReference, component, options, isSpoiler);
+ public Task SendFileAsync(string filePath, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options, isSpoiler);
///
/// Message content is too long, length must be less or equal to .
- public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, embed, allowedMentions, messageReference, component, options, isSpoiler);
+ public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
+ => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, embed, allowedMentions, messageReference, component, stickers, options, isSpoiler);
///
public Task DeleteMessagesAsync(IEnumerable messages, RequestOptions options = null)
@@ -363,14 +363,14 @@ namespace Discord.WebSocket
=> await GetPinnedMessagesAsync(options).ConfigureAwait(false);
///
- async Task IMessageChannel.SendFileAsync(string filePath, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendFileAsync(filePath, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendFileAsync(string filePath, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendFileAsync(filePath, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
///
- async Task IMessageChannel.SendFileAsync(Stream stream, string filename, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendFileAsync(stream, filename, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendFileAsync(Stream stream, string filename, string text, bool isTTS, Embed embed, RequestOptions options, bool isSpoiler, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendFileAsync(stream, filename, text, isTTS, embed, options, isSpoiler, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
///
- async Task IMessageChannel.SendMessageAsync(string text, bool isTTS, Embed embed, RequestOptions options, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component)
- => await SendMessageAsync(text, isTTS, embed, options, allowedMentions, messageReference, component).ConfigureAwait(false);
+ async Task IMessageChannel.SendMessageAsync(string text, bool isTTS, Embed embed, RequestOptions options, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers)
+ => await SendMessageAsync(text, isTTS, embed, options, allowedMentions, messageReference, component, stickers).ConfigureAwait(false);
// INestedChannel
///
diff --git a/src/Discord.Net.WebSocket/Entities/Stickers/SocketCustomSticker.cs b/src/Discord.Net.WebSocket/Entities/Stickers/SocketCustomSticker.cs
index b9c10f4c2..e7bff2ff0 100644
--- a/src/Discord.Net.WebSocket/Entities/Stickers/SocketCustomSticker.cs
+++ b/src/Discord.Net.WebSocket/Entities/Stickers/SocketCustomSticker.cs
@@ -29,7 +29,7 @@ namespace Discord.WebSocket
=> this.AuthorId.HasValue ? Guild.GetUser(this.AuthorId.Value) : null;
///
- /// Gets the guild the sticker lives in.
+ /// Gets the guild the sticker was created in.
///
public SocketGuild Guild { get; }
diff --git a/src/Discord.Net.WebSocket/Entities/Stickers/SocketSticker.cs b/src/Discord.Net.WebSocket/Entities/Stickers/SocketSticker.cs
index ce0d3f4fa..eaf80f9c2 100644
--- a/src/Discord.Net.WebSocket/Entities/Stickers/SocketSticker.cs
+++ b/src/Discord.Net.WebSocket/Entities/Stickers/SocketSticker.cs
@@ -20,7 +20,7 @@ namespace Discord.WebSocket
public virtual ulong PackId { get; private set; }
///
- public string Name { get; internal set; }
+ public string Name { get; protected set; }
///
public virtual string Description { get; private set; }
@@ -29,13 +29,16 @@ namespace Discord.WebSocket
public virtual IReadOnlyCollection Tags { get; private set; }
///
- public virtual string Asset { get; private set; }
+ public virtual StickerType Type { get; private set; }
///
- public virtual string PreviewAsset { get; private set; }
+ public StickerFormatType Format { get; protected set; }
///
- public StickerFormatType Format { get; internal set; }
+ public virtual bool? Available { get; protected set; }
+
+ ///
+ public virtual int? SortOrder { get; private set; }
///
public string GetStickerUrl()
@@ -62,9 +65,10 @@ namespace Discord.WebSocket
this.Name = model.Name;
this.Description = model.Desription;
this.PackId = model.PackId;
- this.Asset = model.Asset;
- this.PreviewAsset = model.PreviewAsset;
+ this.Available = model.Available;
this.Format = model.FormatType;
+ this.Type = model.Type;
+ this.SortOrder = model.SortValue;
if (model.Tags.IsSpecified)
{
@@ -88,8 +92,9 @@ namespace Discord.WebSocket
stickerModel.FormatType == this.Format &&
stickerModel.Id == this.Id &&
stickerModel.PackId == this.PackId &&
- stickerModel.Asset == this.Asset &&
- stickerModel.PreviewAsset == this.PreviewAsset &&
+ stickerModel.Type == this.Type &&
+ stickerModel.SortValue == this.SortOrder &&
+ stickerModel.Available == this.Available &&
(stickerModel.Tags.IsSpecified ?
stickerModel.Tags.Value == string.Join(", ", this.Tags) :
true);
diff --git a/src/Discord.Net.WebSocket/Entities/Stickers/SocketUnknownSticker.cs b/src/Discord.Net.WebSocket/Entities/Stickers/SocketUnknownSticker.cs
index 771a4c413..da8199c4c 100644
--- a/src/Discord.Net.WebSocket/Entities/Stickers/SocketUnknownSticker.cs
+++ b/src/Discord.Net.WebSocket/Entities/Stickers/SocketUnknownSticker.cs
@@ -14,10 +14,6 @@ namespace Discord.WebSocket
[DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public class SocketUnknownSticker : SocketSticker
{
- ///
- public override string Asset
- => null;
-
///
public override IReadOnlyCollection Tags
=> null;
@@ -29,9 +25,16 @@ namespace Discord.WebSocket
///
public override ulong PackId
=> 0;
+ ///
+ public override bool? Available
+ => null;
+
+ ///
+ public override int? SortOrder
+ => null;
///
- public override string PreviewAsset
+ public new StickerType? Type
=> null;
internal SocketUnknownSticker(DiscordSocketClient client, ulong id)
@@ -59,6 +62,6 @@ namespace Discord.WebSocket
public Task ResolveAsync(CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null)
=> Discord.GetStickerAsync(this.Id, mode, options);
- private string DebuggerDisplay => $"{Name} ({Id})";
+ private new string DebuggerDisplay => $"{Name} ({Id})";
}
}
diff --git a/test/Discord.Net.Tests.Unit/MockedEntities/MockedDMChannel.cs b/test/Discord.Net.Tests.Unit/MockedEntities/MockedDMChannel.cs
index 2cc46d3d3..52eed6bc9 100644
--- a/test/Discord.Net.Tests.Unit/MockedEntities/MockedDMChannel.cs
+++ b/test/Discord.Net.Tests.Unit/MockedEntities/MockedDMChannel.cs
@@ -78,24 +78,13 @@ namespace Discord
throw new NotImplementedException();
}
- public Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- {
- throw new NotImplementedException();
- }
-
- public Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- {
- throw new NotImplementedException();
- }
-
- public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
- {
- throw new NotImplementedException();
- }
-
public Task TriggerTypingAsync(RequestOptions options = null)
{
throw new NotImplementedException();
}
+
+ public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null) => throw new NotImplementedException();
+ public Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null) => throw new NotImplementedException();
+ public Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null) => throw new NotImplementedException();
}
}
diff --git a/test/Discord.Net.Tests.Unit/MockedEntities/MockedGroupChannel.cs b/test/Discord.Net.Tests.Unit/MockedEntities/MockedGroupChannel.cs
index e124bc923..bc4f66ed4 100644
--- a/test/Discord.Net.Tests.Unit/MockedEntities/MockedGroupChannel.cs
+++ b/test/Discord.Net.Tests.Unit/MockedEntities/MockedGroupChannel.cs
@@ -86,17 +86,17 @@ namespace Discord
throw new NotImplementedException();
}
- public Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
+ public Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
{
throw new NotImplementedException();
}
- public Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
+ public Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
{
throw new NotImplementedException();
}
- public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
+ public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
{
throw new NotImplementedException();
}
diff --git a/test/Discord.Net.Tests.Unit/MockedEntities/MockedTextChannel.cs b/test/Discord.Net.Tests.Unit/MockedEntities/MockedTextChannel.cs
index 18ff3b3ed..fc39a2b07 100644
--- a/test/Discord.Net.Tests.Unit/MockedEntities/MockedTextChannel.cs
+++ b/test/Discord.Net.Tests.Unit/MockedEntities/MockedTextChannel.cs
@@ -176,17 +176,17 @@ namespace Discord
throw new NotImplementedException();
}
- public Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
+ public Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
{
throw new NotImplementedException();
}
- public Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
+ public Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
{
throw new NotImplementedException();
}
- public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null)
+ public Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null)
{
throw new NotImplementedException();
}