From 90df1dc1ec3d84836fb686cdccdc9085eef9f619 Mon Sep 17 00:00:00 2001 From: Emilia <emilia@jumpsca.re> Date: Fri, 11 Oct 2024 20:47:24 +0300 Subject: [PATCH] Update Types, MongoDB downgrade, add height and width --- Quarkcord/Program.cs | 4 ++++ Quarkcord/Quarkcord.csproj | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Quarkcord/Program.cs b/Quarkcord/Program.cs index d58f9d5..296519c 100644 --- a/Quarkcord/Program.cs +++ b/Quarkcord/Program.cs @@ -361,6 +361,8 @@ public class QuarkcordPlugin : IPlugin Filename = a.Filename, MimeType = a.ContentType, Size = a.Size, + Width = a.Width, + Height = a.Height, Url = new Uri($"{_networkInformation!.CdnBaseUrl}/external/{HttpUtility.UrlEncode(a.Url)}") }).ToArray(); LqMessage lqMessage; @@ -472,4 +474,6 @@ public class LqAttachment : Lightquark.Types.Mongo.IAttachment public string MimeType { get; set; } public string Filename { get; set; } public ObjectId FileId { get; set; } + public int? Height { get; set; } + public int? Width { get; set; } } \ No newline at end of file diff --git a/Quarkcord/Quarkcord.csproj b/Quarkcord/Quarkcord.csproj index 10145a9..cb2824d 100644 --- a/Quarkcord/Quarkcord.csproj +++ b/Quarkcord/Quarkcord.csproj @@ -8,8 +8,8 @@ <ItemGroup> <PackageReference Include="Discord.Net" Version="3.16.0" /> - <PackageReference Include="Lightquark.Types" Version="2024.9.18.148" /> - <PackageReference Include="MongoDB.Driver" Version="2.29.0" /> + <PackageReference Include="Lightquark.Types" Version="2024.10.11.150" /> + <PackageReference Include="MongoDB.Driver" Version="2.25.0" /> </ItemGroup> -- GitLab