@@ -9,11 +9,11 @@ | |||||
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard2.0;netstandard2.1</TargetFrameworks> | <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard2.0;netstandard2.1</TargetFrameworks> | ||||
<PackageIcon>Temporary.png</PackageIcon> | <PackageIcon>Temporary.png</PackageIcon> | ||||
<PackageProjectUrl>https://github.com/Discord-Net-Labs/Discord.Net-Labs</PackageProjectUrl> | <PackageProjectUrl>https://github.com/Discord-Net-Labs/Discord.Net-Labs</PackageProjectUrl> | ||||
<Version>3.0.0</Version> | |||||
<Version>3.0.1</Version> | |||||
<PackageId>Discord.Net.Labs.Rest</PackageId> | <PackageId>Discord.Net.Labs.Rest</PackageId> | ||||
<RepositoryUrl>https://github.com/Discord-Net-Labs/Discord.Net-Labs</RepositoryUrl> | <RepositoryUrl>https://github.com/Discord-Net-Labs/Discord.Net-Labs</RepositoryUrl> | ||||
<AssemblyVersion>3.0.0</AssemblyVersion> | |||||
<FileVersion>3.0.0</FileVersion> | |||||
<AssemblyVersion>3.0.1</AssemblyVersion> | |||||
<FileVersion>3.0.1</FileVersion> | |||||
</PropertyGroup> | </PropertyGroup> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<DocumentationFile>..\Discord.Net.Rest\Discord.Net.Rest.xml</DocumentationFile> | <DocumentationFile>..\Discord.Net.Rest\Discord.Net.Rest.xml</DocumentationFile> | ||||
@@ -8,7 +8,7 @@ | |||||
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">net461;netstandard2.0;netstandard2.1</TargetFrameworks> | <TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">net461;netstandard2.0;netstandard2.1</TargetFrameworks> | ||||
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard2.0;netstandard2.1</TargetFrameworks> | <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard2.0;netstandard2.1</TargetFrameworks> | ||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | <AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||||
<Version>3.0.0</Version> | |||||
<Version>3.0.1</Version> | |||||
<RepositoryUrl>https://github.com/Discord-Net-Labs/Discord.Net-Labs</RepositoryUrl> | <RepositoryUrl>https://github.com/Discord-Net-Labs/Discord.Net-Labs</RepositoryUrl> | ||||
<PackageProjectUrl>https://github.com/Discord-Net-Labs/Discord.Net-Labs</PackageProjectUrl> | <PackageProjectUrl>https://github.com/Discord-Net-Labs/Discord.Net-Labs</PackageProjectUrl> | ||||
<PackageIcon>Temporary.png</PackageIcon> | <PackageIcon>Temporary.png</PackageIcon> | ||||
@@ -16,8 +16,8 @@ | |||||
</PropertyGroup> | </PropertyGroup> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<DocumentationFile>..\Discord.Net.WebSocket\Discord.Net.WebSocket.xml</DocumentationFile> | <DocumentationFile>..\Discord.Net.WebSocket\Discord.Net.WebSocket.xml</DocumentationFile> | ||||
<AssemblyVersion>3.0.0</AssemblyVersion> | |||||
<FileVersion>3.0.0</FileVersion> | |||||
<AssemblyVersion>3.0.1</AssemblyVersion> | |||||
<FileVersion>3.0.1</FileVersion> | |||||
</PropertyGroup> | </PropertyGroup> | ||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||||
<DefineConstants>TRACE</DefineConstants> | <DefineConstants>TRACE</DefineConstants> | ||||
@@ -298,7 +298,9 @@ namespace Discord.WebSocket | |||||
{ | { | ||||
var models = await ApiClient.ListNitroStickerPacksAsync().ConfigureAwait(false); | var models = await ApiClient.ListNitroStickerPacksAsync().ConfigureAwait(false); | ||||
foreach(var model in models.StickerPacks) | |||||
var builder = ImmutableArray.CreateBuilder<StickerPack<SocketSticker>>(); | |||||
foreach (var model in models.StickerPacks) | |||||
{ | { | ||||
var stickers = model.Stickers.Select(x => SocketSticker.Create(_shards[0], x)); | var stickers = model.Stickers.Select(x => SocketSticker.Create(_shards[0], x)); | ||||
@@ -312,8 +314,10 @@ namespace Discord.WebSocket | |||||
stickers | stickers | ||||
); | ); | ||||
_defaultStickers.Add(pack); | |||||
builder.Add(pack); | |||||
} | } | ||||
_defaultStickers = builder.ToImmutable(); | |||||
} | } | ||||
/// <inheritdoc /> | /// <inheritdoc /> | ||||
@@ -214,6 +214,8 @@ namespace Discord.WebSocket | |||||
{ | { | ||||
var models = await ApiClient.ListNitroStickerPacksAsync().ConfigureAwait(false); | var models = await ApiClient.ListNitroStickerPacksAsync().ConfigureAwait(false); | ||||
var builder = ImmutableArray.CreateBuilder<StickerPack<SocketSticker>>(); | |||||
foreach (var model in models.StickerPacks) | foreach (var model in models.StickerPacks) | ||||
{ | { | ||||
var stickers = model.Stickers.Select(x => SocketSticker.Create(this, x)); | var stickers = model.Stickers.Select(x => SocketSticker.Create(this, x)); | ||||
@@ -228,8 +230,10 @@ namespace Discord.WebSocket | |||||
stickers | stickers | ||||
); | ); | ||||
_defaultStickers.Add(pack); | |||||
builder.Add(pack); | |||||
} | } | ||||
_defaultStickers = builder.ToImmutable(); | |||||
} | } | ||||
} | } | ||||
@@ -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.Labs</id> | <id>Discord.Net.Labs</id> | ||||
<version>3.0.0$suffix$</version> | |||||
<version>3.0.1$suffix$</version> | |||||
<title>Discord.Net Labs</title> | <title>Discord.Net Labs</title> | ||||
<authors>Discord.Net Contributors</authors> | <authors>Discord.Net Contributors</authors> | ||||
<owners>quinchs</owners> | <owners>quinchs</owners> | ||||
@@ -15,22 +15,22 @@ | |||||
<dependencies> | <dependencies> | ||||
<group targetFramework="net461"> | <group targetFramework="net461"> | ||||
<dependency id="Discord.Net.Labs.Core" version="3.0.0$suffix$" /> | <dependency id="Discord.Net.Labs.Core" version="3.0.0$suffix$" /> | ||||
<dependency id="Discord.Net.Labs.Rest" version="3.0.0$suffix$" /> | |||||
<dependency id="Discord.Net.Labs.WebSocket" version="3.0.0$suffix$" /> | |||||
<dependency id="Discord.Net.Labs.Rest" version="3.0.1$suffix$" /> | |||||
<dependency id="Discord.Net.Labs.WebSocket" version="3.0.1$suffix$" /> | |||||
<dependency id="Discord.Net.Labs.Commands" version="3.0.0$suffix$" /> | <dependency id="Discord.Net.Labs.Commands" version="3.0.0$suffix$" /> | ||||
<dependency id="Discord.Net.Labs.Webhook" version="3.0.0$suffix$" /> | <dependency id="Discord.Net.Labs.Webhook" version="3.0.0$suffix$" /> | ||||
</group> | </group> | ||||
<group targetFramework="netstandard2.0"> | <group targetFramework="netstandard2.0"> | ||||
<dependency id="Discord.Net.Labs.Core" version="3.0.0$suffix$" /> | <dependency id="Discord.Net.Labs.Core" version="3.0.0$suffix$" /> | ||||
<dependency id="Discord.Net.Labs.Rest" version="3.0.0$suffix$" /> | |||||
<dependency id="Discord.Net.Labs.WebSocket" version="3.0.0$suffix$" /> | |||||
<dependency id="Discord.Net.Labs.Rest" version="3.0.1$suffix$" /> | |||||
<dependency id="Discord.Net.Labs.WebSocket" version="3.0.1$suffix$" /> | |||||
<dependency id="Discord.Net.Labs.Commands" version="3.0.0$suffix$" /> | <dependency id="Discord.Net.Labs.Commands" version="3.0.0$suffix$" /> | ||||
<dependency id="Discord.Net.Labs.Webhook" version="3.0.0$suffix$" /> | <dependency id="Discord.Net.Labs.Webhook" version="3.0.0$suffix$" /> | ||||
</group> | </group> | ||||
<group targetFramework="netstandard2.1"> | <group targetFramework="netstandard2.1"> | ||||
<dependency id="Discord.Net.Labs.Core" version="3.0.0$suffix$" /> | <dependency id="Discord.Net.Labs.Core" version="3.0.0$suffix$" /> | ||||
<dependency id="Discord.Net.Labs.Rest" version="3.0.0$suffix$" /> | |||||
<dependency id="Discord.Net.Labs.WebSocket" version="3.0.0$suffix$" /> | |||||
<dependency id="Discord.Net.Labs.Rest" version="3.0.1$suffix$" /> | |||||
<dependency id="Discord.Net.Labs.WebSocket" version="3.0.1$suffix$" /> | |||||
<dependency id="Discord.Net.Labs.Commands" version="3.0.0$suffix$" /> | <dependency id="Discord.Net.Labs.Commands" version="3.0.0$suffix$" /> | ||||
<dependency id="Discord.Net.Labs.Webhook" version="3.0.0$suffix$" /> | <dependency id="Discord.Net.Labs.Webhook" version="3.0.0$suffix$" /> | ||||
</group> | </group> | ||||