Resolve promises

This commit is contained in:
ayntee
2020-11-16 19:43:11 +04:00
parent 9062bb1045
commit 30d2ba3cf8
2 changed files with 51 additions and 19 deletions
+2 -1
View File
@@ -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 */