[Fix] Allow creating stickers with no description (#2628)
* fix `CreateStickerAsync` methods * Update src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs Co-authored-by: Dmitry <dimson-n@users.noreply.github.com> * fix some parameter names in precontion checks --------- Co-authored-by: Dmitry <dimson-n@users.noreply.github.com>
This commit is contained in:
@@ -1104,7 +1104,7 @@ namespace Discord
|
||||
/// <returns>
|
||||
/// A task that represents the asynchronous creation operation. The task result contains the created sticker.
|
||||
/// </returns>
|
||||
Task<ICustomSticker> CreateStickerAsync(string name, string description, IEnumerable<string> tags, Image image, RequestOptions options = null);
|
||||
Task<ICustomSticker> CreateStickerAsync(string name, Image image, IEnumerable<string> tags, string description = null, RequestOptions options = null);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new sticker in this guild.
|
||||
@@ -1117,7 +1117,7 @@ namespace Discord
|
||||
/// <returns>
|
||||
/// A task that represents the asynchronous creation operation. The task result contains the created sticker.
|
||||
/// </returns>
|
||||
Task<ICustomSticker> CreateStickerAsync(string name, string description, IEnumerable<string> tags, string path, RequestOptions options = null);
|
||||
Task<ICustomSticker> CreateStickerAsync(string name, string path, IEnumerable<string> tags, string description = null, RequestOptions options = null);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new sticker in this guild.
|
||||
@@ -1131,7 +1131,7 @@ namespace Discord
|
||||
/// <returns>
|
||||
/// A task that represents the asynchronous creation operation. The task result contains the created sticker.
|
||||
/// </returns>
|
||||
Task<ICustomSticker> CreateStickerAsync(string name, string description, IEnumerable<string> tags, Stream stream, string filename, RequestOptions options = null);
|
||||
Task<ICustomSticker> CreateStickerAsync(string name, Stream stream, string filename, IEnumerable<string> tags, string description = null, RequestOptions options = null);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a specific sticker within this guild.
|
||||
|
||||
Reference in New Issue
Block a user