Browse Source

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

pull/2585/head
Twinki GitHub 2 years ago
parent
commit
0af835ab0f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Core/CDN.cs

+ 1
- 1
src/Discord.Net.Core/CDN.cs 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)
{


Loading…
Cancel
Save