Skip to content
Interfacecorev0.14.0

RequireBotPermissionsOptions

Options for RequireBotPermissions.

interface RequireBotPermissionsOptions

in

The set that the check reads. 'channel' reads the effective channel set in the payload, 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