Add size in CDN.GetGuildSplashUrl (#3087)
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user