Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix 3.15.2 #2946

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Discord.Net.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VersionPrefix>3.15.1</VersionPrefix>
<VersionPrefix>3.15.2</VersionPrefix>
<LangVersion>latest</LangVersion>
<Authors>Discord.Net Contributors</Authors>
<PackageTags>discord;discordapp</PackageTags>
Expand Down
2 changes: 1 addition & 1 deletion docs/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions src/Discord.Net.Core/Entities/Emotes/Emote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ public class Emote : IEmote, ISnowflakeEntity
/// </summary>
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public AutocompleteAttribute(Type autocompleteHandlerType)

AutocompleteHandlerType = autocompleteHandlerType;
}

/// <summary>
/// Set the <see cref="ApplicationCommandOptionProperties.IsAutocomplete"/> to <see langword="true"/> without specifying a <see cref="AutocompleteHandler"/>.
/// </summary>
public AutocompleteAttribute() { }
}

/// <summary>
Expand Down
62 changes: 31 additions & 31 deletions src/Discord.Net/Discord.Net.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Discord.Net</id>
<version>3.15.1$suffix$</version>
<version>3.15.2$suffix$</version>
<title>Discord.Net</title>
<authors>Discord.Net Contributors</authors>
<owners>foxbot</owners>
Expand All @@ -15,44 +15,44 @@
<readme>NUGET_README.md</readme>
<dependencies>
<group targetFramework="net6.0">
<dependency id="Discord.Net.Core" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.1$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Core" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.2$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.2$suffix$" />
</group>
<group targetFramework="net5.0">
<dependency id="Discord.Net.Core" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.1$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Core" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.2$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.2$suffix$" />
</group>
<group targetFramework="net461">
<dependency id="Discord.Net.Core" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.1$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Core" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.2$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.2$suffix$" />
</group>
<group targetFramework="netstandard2.0">
<dependency id="Discord.Net.Core" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.1$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Core" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.2$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.2$suffix$" />
</group>
<group targetFramework="netstandard2.1">
<dependency id="Discord.Net.Core" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.1$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.1$suffix$" />
<dependency id="Discord.Net.Core" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Rest" version="3.15.2$suffix$" />
<dependency id="Discord.Net.WebSocket" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Commands" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Webhook" version="3.15.2$suffix$" />
<dependency id="Discord.Net.Interactions" version="3.15.2$suffix$" />
</group>
</dependencies>
</metadata>
Expand Down