matrix-appservice-bridge
    Preparing search index...

    Class MatrixRoom

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    name?: string
    roomId: string

    The room ID

    topic?: string

    Accessors

    • get extras(): Record<string, unknown>

      Returns Record<string, unknown>

    Methods

    • Set data about this room from a serialized data object.

      Parameters

      Returns void

    • Get the data value for the given key.

      Type Parameters

      • T

      Parameters

      • key: string

        An arbitrary bridge-specific key.

      Returns T

      Stored data for this key. May be undefined.

    • Get the room ID.

      Returns string

      The room ID

    • Serialize data about this room into a JSON object.

      Returns MatrixRoomData

      The serialised data

    • Set an arbitrary bridge-specific data value for this room. This will be serailized under an 'extras' key.

      Parameters

      • key: string

        The key to store the data value under.

      • val: unknown

        The data value. This value should be serializable via JSON.stringify(data).

      Returns void