telegramsjs
    Preparing search index...

    Class ChatPermissions

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

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    Flags: Record<ChatPermissionString, number>

    A mapping of chat permission strings to their numeric equivalents.

    Methods

    • Checks if this instance is equal to another ChatPermissions 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.

    • Checks if the provided permission is valid.

      Parameters

      • permission: string

        The permission to validate.

      Returns boolean

      true if the permission is valid, otherwise false.