# hasPermsToAssign

`function` in `gateway` · v0.1.0-next.3

<https://docs.seedcord.org/packages/gateway/0.1.0-next.3/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`.
