# hasPermsToAssign

`function` in `gateway` · v0.9.0

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

Validates that the bot can assign a role. Refuses when the role is at or above the bot's, when an
integration manages it, or when the bot lacks Manage Roles.

```ts
hasPermsToAssign(
    { role, higher, managed, missing },
    input: HasPermsToAssignOptions
): void
```

Validates that the bot can assign a role. Refuses when the role is at or above the bot's, when an
integration manages it, or when the bot lacks Manage Roles.

Parameters.

- `{ role, higher, managed, missing }`
- `input` `HasPermsToAssignOptions`

Returns `void`.
