mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
Resolve promises
This commit is contained in:
@@ -175,7 +175,8 @@ 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
|
||||
return botHasPermission(guild.id, permissions);
|
||||
const hasPerms = await botHasPermission(guild.id, permissions);
|
||||
return hasPerms;
|
||||
}
|
||||
|
||||
/** This function converts a bitwise string to permission strings */
|
||||
|
||||
Reference in New Issue
Block a user