Update DiscordExtensions.cs

This commit is contained in:
Lala Sabathil 2025-02-11 10:28:19 +01:00
parent 1b2fc0f3b9
commit 293ccd8c52
No known key found for this signature in database

View file

@ -185,7 +185,7 @@ public static class DiscordExtensions
return $"<discord-attachment slot=\"attachments\" " +
$"type=\"{type}\" " +
$"url=\"{Sanitize(x.Url)}\" " +
$"url=\"{Sanitize(x.Url.ToString())}\" " +
$"alt=\"{Sanitize(alt)}\" " +
$"size=\"{x.FileSize.Value.FileSizeToHumanReadable()}\" " +
$"height=\"{x.Height}\" " +
@ -225,7 +225,7 @@ public static class DiscordExtensions
return $"<discord-attachment slot=\"attachments\" " +
$"type=\"{type}\" " +
$"url=\"{Sanitize(x.Url)}\" " +
$"url=\"{Sanitize(x.Url.ToString())}\" " +
$"alt=\"{Sanitize(alt)}\" " +
$"height=\"160\" " +
$"width=\"160\"/>";