Skip to content
Interfacecorev0.10.0

RequirePermissionsOptions

interface RequirePermissionsOptions

in

The set the check reads. 'channel' reads the effective channel set the payload carries, what Discord enforces in the invoked channel. 'guild' reads the base set from roles, available on the gateway transport only.

in?: 'channel' | 'guild'

Default:'channel'

missing

Reword or replace the refusal shown when a permission is missing.

notInGuild

Reword or replace the refusal shown when the set is unavailable (outside a guild, or unresolved inside one).

notInGuild?: GateNoticeOptions