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

@@ -158,7 +158,7 @@ namespace PluralKit.Bot {
foreach (var channel in await _rest.GetGuildChannels(guild.Id))
{
var botPermissions = _bot.PermissionsIn(channel.Id);
var userPermissions = PermissionExtensions.PermissionsFor(guild, channel, ctx.Author.Id, senderGuildUser.Roles);
var userPermissions = PermissionExtensions.PermissionsFor(guild, channel, ctx.Author.Id, senderGuildUser);
if ((userPermissions & PermissionSet.ViewChannel) == 0)
{