Skip to content
Interfacecorev0.12.0

RequireBotPermissionsOptions

Options for RequireBotPermissions.

interface RequireBotPermissionsOptions

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

Your Notice class, constructed and thrown in place of the refusal when a permission is missing.

notInGuild

Your Notice class, constructed and thrown in place of the refusal outside a guild.

notInGuild?: NoticeConstructor