From d222d0eaeccf74d86b899e2ed251c6d2199b82ba Mon Sep 17 00:00:00 2001 From: Emilia <emilia@jumpsca.re> Date: Mon, 24 Jun 2024 21:13:06 +0300 Subject: [PATCH] Update LQ types and change avatar uri get method --- Quarkcord/Program.cs | 2 +- Quarkcord/Quarkcord.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Quarkcord/Program.cs b/Quarkcord/Program.cs index c333cfb..8e88f32 100644 --- a/Quarkcord/Program.cs +++ b/Quarkcord/Program.cs @@ -277,7 +277,7 @@ public class QuarkcordPlugin : IPlugin { ["type"] = "botMessage", ["username"] = (message.Author as SocketGuildUser)?.Nickname ?? message.Author.GlobalName ?? message.Author.Username, - ["avatarUri"] = $"{_networkInformation!.CdnBaseUrl}/external/{HttpUtility.UrlEncode(message.Author.GetAvatarUrl())}" + ["avatarUri"] = $"{_networkInformation!.CdnBaseUrl}/external/{HttpUtility.UrlEncode(message.Author.GetDisplayAvatarUrl())}" } }; if (message.ReferencedMessage != null) diff --git a/Quarkcord/Quarkcord.csproj b/Quarkcord/Quarkcord.csproj index ba7bc3c..ff3d237 100644 --- a/Quarkcord/Quarkcord.csproj +++ b/Quarkcord/Quarkcord.csproj @@ -8,7 +8,7 @@ <ItemGroup> <PackageReference Include="Discord.Net" Version="3.15.0" /> - <PackageReference Include="Lightquark.Types" Version="2024.6.1-59" /> + <PackageReference Include="Lightquark.Types" Version="2024.6.24-77" /> <PackageReference Include="MongoDB.Driver" Version="2.25.0" /> </ItemGroup> -- GitLab