Add size in CDN.GetGuildSplashUrl (#3087)

This commit is contained in:
ForceFK
2025-03-31 15:32:57 -03:00
committed by GitHub
parent 88cfbe5453
commit fb90701149

View File

@@ -140,8 +140,8 @@ namespace Discord
/// <returns>
/// A URL pointing to the guild's splash.
/// </returns>
public static string GetGuildSplashUrl(ulong guildId, string splashId)
=> splashId != null ? $"{DiscordConfig.CDNUrl}splashes/{guildId}/{splashId}.jpg" : null;
public static string GetGuildSplashUrl(ulong guildId, string splashId, ushort size = 2048)
=> splashId != null ? $"{DiscordConfig.CDNUrl}splashes/{guildId}/{splashId}.jpg?size={size}" : null;
/// <summary>
/// Returns a guild discovery splash URL.
/// </summary>