fix cache error on system messages

This commit is contained in:
spiral
2021-08-02 16:18:39 -04:00
parent e144571904
commit 28bcb35bb2
3 changed files with 13 additions and 16 deletions

View File

@@ -83,7 +83,7 @@ namespace PluralKit.Bot
if (channel.GuildId != null)
{
var member = _guildMembers.GetValueOrDefault(channel.GuildId.Value);
return _cache.PermissionsFor(channelId, _cluster.User?.Id ?? default, member?.Roles);
return _cache.PermissionsFor(channelId, _cluster.User?.Id ?? default, member);
}
return PermissionSet.Dm;