internal static string GetAvatarUrl(IUser user, ImageFormat format = default, int size = 2048) => user.AvatarHash != null ? Cdn.GetUserAvatarUrl(user.Id, user.AvatarHash, format, size) : Cdn.GetDefaultUserAvatarUrl(user.Discriminator);
internal static string GetAvatarUrl(RestWebhook webhook, ImageFormat format = default, int size = 2048) => webhook.AvatarHash != null ? Cdn.GetUserAvatarUrl(webhook.Id, webhook.AvatarHash, format, size) : Cdn.GetDefaultUserAvatarUrl(DefaultAvatarColor.Blurple);