Hotfix 3.15.2 (#2946)

This commit is contained in:
Mihail Gribkov
2024-06-18 22:16:33 +03:00
committed by GitHub
parent 28d3dcdd75
commit 85a13e9fff
6 changed files with 43 additions and 35 deletions

View File

@@ -1,5 +1,10 @@
# Changelog # Changelog
## [3.15.2] - 2024-06-18
### Hotfix
- fix `AutocompleteAttribute` with empty constructor
- fix `Emote` constructor related issues
## [3.15.1] - 2024-06-18 ## [3.15.1] - 2024-06-18
### Added ### Added
- #2927 Add missing PollProperties (a59f4ba) - #2927 Add missing PollProperties (a59f4ba)

View File

@@ -1,6 +1,6 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<VersionPrefix>3.15.1</VersionPrefix> <VersionPrefix>3.15.2</VersionPrefix>
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>
<Authors>Discord.Net Contributors</Authors> <Authors>Discord.Net Contributors</Authors>
<PackageTags>discord;discordapp</PackageTags> <PackageTags>discord;discordapp</PackageTags>

View File

@@ -59,7 +59,7 @@
"globalMetadata": { "globalMetadata": {
"_appTitle": "Discord.Net Documentation", "_appTitle": "Discord.Net Documentation",
"_appName": "Discord.Net", "_appName": "Discord.Net",
"_appFooter": "Discord.Net © 2015-2024 3.15.1", "_appFooter": "Discord.Net © 2015-2024 3.15.2",
"_enableSearch": true, "_enableSearch": true,
"_appLogoPath": "marketing/logo/SVG/Logomark Purple.svg", "_appLogoPath": "marketing/logo/SVG/Logomark Purple.svg",
"_appFaviconPath": "favicon.png" "_appFaviconPath": "favicon.png"

View File

@@ -36,8 +36,6 @@ namespace Discord
/// </summary> /// </summary>
public Emote(ulong id, string name, bool animated = false) 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; Id = id;
Name = name; Name = name;
Animated = animated; Animated = animated;

View File

@@ -27,6 +27,11 @@ public class AutocompleteAttribute : Attribute
AutocompleteHandlerType = autocompleteHandlerType; AutocompleteHandlerType = autocompleteHandlerType;
} }
/// <summary>
/// Set the <see cref="ApplicationCommandOptionProperties.IsAutocomplete"/> to <see langword="true"/> without specifying a <see cref="AutocompleteHandler"/>.
/// </summary>
public AutocompleteAttribute() { }
} }
/// <summary> /// <summary>

View File

@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata> <metadata>
<id>Discord.Net</id> <id>Discord.Net</id>
<version>3.15.1$suffix$</version> <version>3.15.2$suffix$</version>
<title>Discord.Net</title> <title>Discord.Net</title>
<authors>Discord.Net Contributors</authors> <authors>Discord.Net Contributors</authors>
<owners>foxbot</owners> <owners>foxbot</owners>
@@ -15,44 +15,44 @@
<readme>NUGET_README.md</readme> <readme>NUGET_README.md</readme>
<dependencies> <dependencies>
<group targetFramework="net6.0"> <group targetFramework="net6.0">
<dependency id="Discord.Net.Core" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Core" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Rest" version="3.15.2$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.1$suffix$" /> <dependency id="Discord.Net.WebSocket" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Commands" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Webhook" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Interactions" version="3.15.2$suffix$" />
</group> </group>
<group targetFramework="net5.0"> <group targetFramework="net5.0">
<dependency id="Discord.Net.Core" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Core" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Rest" version="3.15.2$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.1$suffix$" /> <dependency id="Discord.Net.WebSocket" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Commands" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Webhook" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Interactions" version="3.15.2$suffix$" />
</group> </group>
<group targetFramework="net461"> <group targetFramework="net461">
<dependency id="Discord.Net.Core" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Core" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Rest" version="3.15.2$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.1$suffix$" /> <dependency id="Discord.Net.WebSocket" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Commands" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Webhook" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Interactions" version="3.15.2$suffix$" />
</group> </group>
<group targetFramework="netstandard2.0"> <group targetFramework="netstandard2.0">
<dependency id="Discord.Net.Core" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Core" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Rest" version="3.15.2$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.1$suffix$" /> <dependency id="Discord.Net.WebSocket" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Commands" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Webhook" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Interactions" version="3.15.2$suffix$" />
</group> </group>
<group targetFramework="netstandard2.1"> <group targetFramework="netstandard2.1">
<dependency id="Discord.Net.Core" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Core" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Rest" version="3.15.2$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.1$suffix$" /> <dependency id="Discord.Net.WebSocket" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Commands" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Webhook" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.1$suffix$" /> <dependency id="Discord.Net.Interactions" version="3.15.2$suffix$" />
</group> </group>
</dependencies> </dependencies>
</metadata> </metadata>