# checkBotPermissions

`function` in `seedcord` · v0.11.0

<https://docs.seedcord.org/packages/seedcord/0.11.0/functions/check-bot-permissions>

Checks if the bot has required permissions in a Guild or TextChannel.

```ts
checkBotPermissions(
    target: Guild | TextChannel,
    scope: BotPermissionScope,
    inverse?: boolean,
    errors?: PermissionErrorCtors
): void
```

Checks if the bot has required permissions in a Guild or TextChannel.

Parameters.

- `target` `Guild | TextChannel` — Guild or text channel to check in
- `scope` `BotPermissionScope` — Permission bits to validate
- `inverse?` `boolean` — Whether to check for absence of the given permissions
- `errors?` `PermissionErrorCtors` — Optional custom error constructors

Returns `void`.
