Skip to content
Interfacecorev0.14.0

RequirePermissionsOptions

Options for RequirePermissions.

interface RequirePermissionsOptions extends 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'

Inherited from:RequireBotPermissionsOptions

Default:'channel'

unresolved

Your Notice class, constructed and thrown in place of the refusal when the member's permissions are unavailable inside a guild.

unresolved?: NoticeConstructor