refactor: replace "return await" (#354)

This commit is contained in:
Ayyan
2021-01-09 21:48:02 +04:00
committed by GitHub
parent cd7973273e
commit 27fb44128f
3 changed files with 5 additions and 6 deletions
+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
return await memberIDHasPermission(memberID, guild.id, permissions);
return memberIDHasPermission(memberID, guild.id, permissions);
}
/** This function converts a bitwise string to permission strings */