Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
sylveonnotdeko committed Jul 31, 2023
1 parent eea0db0 commit 9d12917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mewdeko/Services/Impl/StatsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ public Task SetTopGuilds()
var periodicTimer = new PeriodicTimer(TimeSpan.FromHours(12));
// Set it once before executing the 12h loop
var guilds = await Client.Rest.GetGuildsAsync(true);
do
{
try
{
Log.Information("Updating top guilds");
var guilds = await Client.Rest.GetGuildsAsync(true);
var servers = guilds.OrderByDescending(x => x.ApproximateMemberCount.Value).Take(7).Select(x => new MewdekoPartialGuild()
{
IconUrl = x.IconId.StartsWith("a_") ? x.IconUrl.Replace(".jpg", ".gif") : x.IconUrl, MemberCount = x.ApproximateMemberCount.Value, Name = x.Name
Expand Down

0 comments on commit 9d12917

Please sign in to comment.