diff --git a/src/Numerous.Bot/Osu/MapFeedService.cs b/src/Numerous.Bot/Osu/MapFeedService.cs index e032a49..7755ada 100644 --- a/src/Numerous.Bot/Osu/MapFeedService.cs +++ b/src/Numerous.Bot/Osu/MapFeedService.cs @@ -96,6 +96,9 @@ private async Task CheckForNewBeatmapsetsAsync(CancellationToken ct) .Where(id => osuUserDiscordIdDic.ContainsKey(id)) .Select(id => new { osuId = id, discordId = osuUserDiscordIdDic[id] }); + var usernames = fullSet.RelatedUsers?.ToDictionary(u => u.Id, u => u.Username) + ?? []; + var sendTasks = channelIds.Select(id => Task.Run(async () => { var channel = (IMessageChannel)await discordClient.GetChannelAsync(id); @@ -111,7 +114,7 @@ private async Task CheckForNewBeatmapsetsAsync(CancellationToken ct) var gdMappersInGuild = verifiedGdMapperIds .Where(ids => guildUserIds.Contains(ids.discordId)) - .Select(ids => $"{MentionUtils.MentionUser(ids.discordId)} ({Link.OsuUser(ids.osuId)})") + .Select(ids => $"{MentionUtils.MentionUser(ids.discordId)} ({Link.OsuUser(ids.osuId, usernames[ids.osuId])})") .ToArray(); var (eb, cb) = EmbedBuilders.BeatmapSetUpdate(fullSet, mapper, gdMappersInGuild);