Fix GetEventCoverImageUrl by removing the GuildId in the Url string (#2577)
This commit is contained in:
@@ -218,7 +218,7 @@ namespace Discord
|
|||||||
/// <param name="size">The size of the image.</param>
|
/// <param name="size">The size of the image.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static string GetEventCoverImageUrl(ulong guildId, ulong eventId, string assetId, ImageFormat format = ImageFormat.Auto, ushort size = 1024)
|
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)
|
private static string FormatToExtension(StickerFormatType format)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user