# checkPermissions

`function` in `gateway` · v0.9.0

<https://seedcord.org/docs/packages/gateway/0.9.0/functions/check-permissions>

Checks a Role or a GuildMember against the base permission set from roles, or against a
channel's set when `in` is given. Refuses when a permission in `scope` is missing, or with `inverse` when
one is present.

```ts
checkPermissions(
    { for: target, in: channel, scope, inverse, notice },
    input: CheckPermissionOptions
): void
```

Checks a Role or a GuildMember against the base permission set from roles, or against a
channel's set when `in` is given. Refuses when a permission in `scope` is missing, or with `inverse` when
one is present.

Parameters.

- `{ for: target, in: channel, scope, inverse, notice }`
- `input` `CheckPermissionOptions`

Returns `void`.
