diff --git a/src/Services/GuildDataService.cs b/src/Services/GuildDataService.cs index b07755d..0833adf 100644 --- a/src/Services/GuildDataService.cs +++ b/src/Services/GuildDataService.cs @@ -110,10 +110,13 @@ public sealed class GuildDataService : IHostedService continue; } - var memberResult = await _guildApi.GetGuildMemberAsync(guildId, data.Id.ToSnowflake(), ct); - if (memberResult.IsSuccess) + if (data.MutedUntil is null) { - data.Roles = memberResult.Entity.Roles.ToList().ConvertAll(r => r.Value); + 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);