mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-02-24 07:52:39 +03:00
parent
f2db7f016c
commit
906bfd07e8
1 changed files with 6 additions and 3 deletions
|
@ -110,11 +110,14 @@ public sealed class GuildDataService : IHostedService
|
|||
continue;
|
||||
}
|
||||
|
||||
if (data.MutedUntil is null)
|
||||
{
|
||||
var memberResult = await _guildApi.GetGuildMemberAsync(guildId, data.Id.ToSnowflake(), ct);
|
||||
if (memberResult.IsSuccess)
|
||||
{
|
||||
data.Roles = memberResult.Entity.Roles.ToList().ConvertAll(r => r.Value);
|
||||
}
|
||||
}
|
||||
|
||||
memberData.Add(data.Id, data);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue