public static CakeEmbedBuilder ReturnUserRecent(OsuJsonUser user, OsuJsonBeatmap beatmap, OsuJsonUserRecent recent, string description, int mode, int retryCount) { return(ReturnUserRecentBase(user) .WithUrl(beatmap.beatmap_url) .WithThumbnailUrl(beatmap.thumbnail) .WithTimestamp(recent.date) .WithTitle($"{beatmap.complete_title} {Math.Round(recent.starrating, 2)}★") .WithFooter($"{OsuMode.GetOfficialName(mode)} ⌑ {GetNameofApproved(beatmap.approved)} ⌑ #{retryCount} try") .WithDescription(description) as CakeEmbedBuilder); }
public static CakeEmbedBuilder ReturnChannelCompare(OsuJsonUser user, OsuJsonBeatmap beatmap, string description, int mode) { return(new CakeEmbedBuilder() .WithAuthor(author => { author .WithName($"Compare score(s) of {user.username}") .WithUrl(user.url) .WithIconUrl(user.image); }) .WithThumbnailUrl(beatmap.thumbnail) .WithTitle(beatmap.complete_title) .WithUrl(beatmap.beatmap_url) .WithDescription(description) .WithFooter($"{OsuMode.GetOfficialName(mode)} ⌑ {GetNameofApproved(beatmap.approved)}") as CakeEmbedBuilder); }