Fix GetEventCoverImageUrl by removing the GuildId in the Url string (#2577)

This commit is contained in:
Twinki
2023-02-06 07:16:31 -05:00
committed by GitHub
parent e7bda0f8a5
commit 0af835ab0f

View File

@@ -218,7 +218,7 @@ namespace Discord
/// <param name="size">The size of the image.</param>
/// <returns></returns>
public static string GetEventCoverImageUrl(ulong guildId, ulong eventId, string assetId, ImageFormat format = ImageFormat.Auto, ushort size = 1024)
=> $"{DiscordConfig.CDNUrl}guild-events/{guildId}/{eventId}/{assetId}.{FormatToExtension(format, assetId)}?size={size}";
=> $"{DiscordConfig.CDNUrl}guild-events/{eventId}/{assetId}.{FormatToExtension(format, assetId)}?size={size}";
private static string FormatToExtension(StickerFormatType format)
{