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