fix: hasChannelPermissions() to use memberIDHasPermission() (#279)

This commit is contained in:
ITOH
2020-12-27 15:46:11 +00:00
committed by GitHub
parent 2e1ad20361
commit abee2e2dee
+1 -1
View File
@@ -191,7 +191,7 @@ export async function hasChannelPermissions(
if (permissions.every((perm) => allowedPermissions.has(perm))) return true;
// Some permission was not explicitly allowed so we default to checking role perms directly
const hasPerms = await botHasPermission(guild.id, permissions);
const hasPerms = await memberIDHasPermission(memberID, guild.id, permissions);
return hasPerms;
}