# hasPermsToAssign

`function` in `seedcord` · v0.12.0

<https://docs.seedcord.org/packages/seedcord/0.12.0/functions/has-perms-to-assign>

Validates if the bot can assign a target role. Checks for role hierarchy, managed status, and Manage Roles permission.

```ts
hasPermsToAssign(
    roleOrOptions: Role | HasPermsToAssignOptions
): void
```

Validates if the bot can assign a target role. Checks for role hierarchy, managed status, and Manage Roles permission.

Parameters.

- `roleOrOptions` `Role | HasPermsToAssignOptions` — Target role or complete options for the check

Returns `void`.
