Functiongatewayv0.11.0
Throws:
A
Noticewhen the check refuses.A SeedcordError when the guild's caches don't hold the bot's role or member.
hasPermsToAssign(
{ role, higher, managed, missing },
input: HasPermsToAssignOptions
): voidimport { hasPermsToAssign } from '@seedcord/gateway';
hasPermsToAssign({ role });
// with your own Notice classes
hasPermsToAssign({ role, higher: RoleTooHigh, managed: RoleIsManaged, missing: CannotManageRoles });{ role, higher, managed, missing }
{ role, higher, managed, missing }input
input: HasPermsToAssignOptions