Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CommandPermissions

Object that stores permission resolvables and properties (bouund to a PermissionCommand)

Hierarchy

  • CommandPermissions

Index

Constructors

constructor

Properties

Readonly checkType

Command permissions

readonly

Readonly command

Command bound to this object

readonly

Readonly permissions

permissions: PermissionFunction | Permissions

If set to "ALL", the command can only be used when all specified conditions are met. (works only for Discord.js permissions object)

readonly

Accessors

bitfield

  • get bitfield(): BigInt

isCustom

  • get isCustom(): boolean

Methods

check

  • check(i: Message | Interaction): boolean
  • Checks if the interaction sender is permitted to use the command attached to this object

    Parameters

    • i: Message | Interaction

      command interaction or Discord message

    Returns boolean

    Whether a sender can use the command bound to this object

Generated using TypeDoc