mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
fix: hasChannelPermissions() to use memberIDHasPermission() (#279)
This commit is contained in:
@@ -191,7 +191,7 @@ export async function hasChannelPermissions(
|
|||||||
if (permissions.every((perm) => allowedPermissions.has(perm))) return true;
|
if (permissions.every((perm) => allowedPermissions.has(perm))) return true;
|
||||||
|
|
||||||
// Some permission was not explicitly allowed so we default to checking role perms directly
|
// 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;
|
return hasPerms;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user