Skip to content

Commit 0eb62b5

Browse files
committed
Select from cached winnerIds variable
1 parent be1a331 commit 0eb62b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Present/Services/GiveawayService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Collections.Concurrent;
1+
using System.Collections.Concurrent;
22
using System.Diagnostics.CodeAnalysis;
33
using CSharpVitamins;
44
using DSharpPlus;
@@ -201,7 +201,7 @@ public DiscordEmbedBuilder CreateGiveawayInformationEmbed(Giveaway giveaway)
201201
List<ulong> winnerIds = giveaway.WinnerIds;
202202
if (winnerIds.Count > 0)
203203
{
204-
string winnerList = string.Join('\n', giveaway.WinnerIds.Select(w => $"• {MentionUtility.MentionUser(w)} ({w})"));
204+
string winnerList = string.Join('\n', winnerIds.Select(w => $"• {MentionUtility.MentionUser(w)} ({w})"));
205205
embed.AddField(EmbedStrings.Winner.ToQuantity(winnerIds.Count), winnerList);
206206
}
207207

0 commit comments

Comments
 (0)