forked from TeamInklings/Octobot
parent
f2db7f016c
commit
906bfd07e8
1 changed files with 6 additions and 3 deletions
|
@ -110,11 +110,14 @@ public sealed class GuildDataService : IHostedService
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data.MutedUntil is null)
|
||||||
|
{
|
||||||
var memberResult = await _guildApi.GetGuildMemberAsync(guildId, data.Id.ToSnowflake(), ct);
|
var memberResult = await _guildApi.GetGuildMemberAsync(guildId, data.Id.ToSnowflake(), ct);
|
||||||
if (memberResult.IsSuccess)
|
if (memberResult.IsSuccess)
|
||||||
{
|
{
|
||||||
data.Roles = memberResult.Entity.Roles.ToList().ConvertAll(r => r.Value);
|
data.Roles = memberResult.Entity.Roles.ToList().ConvertAll(r => r.Value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
memberData.Add(data.Id, data);
|
memberData.Add(data.Id, data);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue