telegramsjs
    Preparing search index...

    Class UserPermissions

    Represents a set of user permissions and provides methods to manage them.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    Flags: Record<UserPermissionString, number>

    A mapping of user permission strings to their numeric equivalents.

    Methods

    • Checks if this instance is equal to another UserPermissions instance.

      Parameters

      Returns boolean

      true if both instances are equal, otherwise false.

    • Checks if the specified permission is granted.

      Parameters

      Returns boolean

      true if the permission is granted, otherwise false.