# AssignRoleErrorCtors

`interface` in `seedcord` · v0.11.0

<https://docs.seedcord.org/packages/seedcord/0.11.0/interfaces/assign-role-error-ctors>

Optional custom error constructors for [`HasPermsToAssignOptions`](/packages/seedcord/0.11.0/interfaces/has-perms-to-assign-options).

```ts
interface AssignRoleErrorCtors
```

## Properties

### higher

```ts
higher: new (message: string, role: Role, botRole: Role) => CustomError
```

Custom error for role higher than bot

### managed

```ts
managed: new (message: string) => CustomError
```

Custom error for managed role assignment

### missing

```ts
missing: new (message: string, where: Role | TextChannel | Guild | GuildMember, missingPerms: string[]) => CustomError
```

Custom error for missing Manage Roles permission
