Skip to content
Interfacecorev0.12.0

RequireRoleOptions

Options for RequireRole.

interface RequireRoleOptions

missingRole

Your Notice class, constructed with the role id and thrown in place of the refusal when the caller lacks the role.

missingRole?: NoticeConstructor<[roleId: string]>

notInGuild

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

notInGuild?: NoticeConstructor