Interface for building out a room. Please note, a room creator, name, and type must be set otherwise you will NOT be able to successfully save the room object.

Hierarchy

Properties

Methods

  • Adds a user to the room, these are by username until further notice.

    Parameters

    • username: string

      the user's username to add to the room

    Returns IRoomBuilder

    Deprecated

    in favor of addMemberToBeAddedByUsername. This method will be removed on version 2.0.0

  • Gets the usernames of users in the room.

    Returns string[]

    Deprecated

    in favor of getMembersUsernames. This method will be removed on version 2.0.0

  • Sets whether this room should display the system messages (like user join, etc) or not. This means that whenever a system event, such as joining or leaving, happens then Rocket.Chat won't send the message to the channel.

    Parameters

    • displaySystemMessages: boolean

      whether the messages should display or not

    Returns IRoomBuilder

  • Sets whether this room should be in read only state or not. This means that users without the required permission to talk when a room is muted will not be able to talk but instead will only be able to read the contents of the room.

    Parameters

    • isReadOnly: boolean

      whether it should be read only or not

    Returns IRoomBuilder

Generated using TypeDoc