diff --git a/CHANGELOG.md b/CHANGELOG.md index d58392053b..f2d020350d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [3.15.2] - 2024-06-18 +### Hotfix +- fix `AutocompleteAttribute` with empty constructor +- fix `Emote` constructor related issues + ## [3.15.1] - 2024-06-18 ### Added - #2927 Add missing PollProperties (a59f4ba) diff --git a/Discord.Net.targets b/Discord.Net.targets index 5dac959063..d3942bb7d7 100644 --- a/Discord.Net.targets +++ b/Discord.Net.targets @@ -1,6 +1,6 @@ - 3.15.1 + 3.15.2 latest Discord.Net Contributors discord;discordapp diff --git a/docs/docfx.json b/docs/docfx.json index e69cddcc0e..a1df3356e7 100644 --- a/docs/docfx.json +++ b/docs/docfx.json @@ -59,7 +59,7 @@ "globalMetadata": { "_appTitle": "Discord.Net Documentation", "_appName": "Discord.Net", - "_appFooter": "Discord.Net © 2015-2024 3.15.1", + "_appFooter": "Discord.Net © 2015-2024 3.15.2", "_enableSearch": true, "_appLogoPath": "marketing/logo/SVG/Logomark Purple.svg", "_appFaviconPath": "favicon.png" diff --git a/src/Discord.Net.Core/Entities/Emotes/Emote.cs b/src/Discord.Net.Core/Entities/Emotes/Emote.cs index b55535bad5..ed5fd682b7 100644 --- a/src/Discord.Net.Core/Entities/Emotes/Emote.cs +++ b/src/Discord.Net.Core/Entities/Emotes/Emote.cs @@ -36,8 +36,6 @@ public class Emote : IEmote, ISnowflakeEntity /// public Emote(ulong id, string name, bool animated = false) { - if (string.IsNullOrWhiteSpace(name)) - throw new ArgumentException("A custom emote must have a name", nameof(name)); Id = id; Name = name; Animated = animated; diff --git a/src/Discord.Net.Interactions/Attributes/AutocompleteAttribute.cs b/src/Discord.Net.Interactions/Attributes/AutocompleteAttribute.cs index 71c1c16a4c..09089fef94 100644 --- a/src/Discord.Net.Interactions/Attributes/AutocompleteAttribute.cs +++ b/src/Discord.Net.Interactions/Attributes/AutocompleteAttribute.cs @@ -27,6 +27,11 @@ public AutocompleteAttribute(Type autocompleteHandlerType) AutocompleteHandlerType = autocompleteHandlerType; } + + /// + /// Set the to without specifying a . + /// + public AutocompleteAttribute() { } } /// diff --git a/src/Discord.Net/Discord.Net.nuspec b/src/Discord.Net/Discord.Net.nuspec index 044acc8a36..8448d64692 100644 --- a/src/Discord.Net/Discord.Net.nuspec +++ b/src/Discord.Net/Discord.Net.nuspec @@ -2,7 +2,7 @@ Discord.Net - 3.15.1$suffix$ + 3.15.2$suffix$ Discord.Net Discord.Net Contributors foxbot @@ -15,44 +15,44 @@ NUGET_README.md - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + +