# hasPermsToAssign

`function` in `seedcord` · v0.14.0

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

Validates if the bot can assign a target role. Refuses when the target role is above the bot's, is managed, or the bot lacks Manage Roles.

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

Validates if the bot can assign a target role. Refuses when the target role is above the bot's, is managed, or the bot lacks Manage Roles.

Parameters.

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

Returns `void`.
