The chat room instance class.

To get the correct value, ensure that you call ChatRoomManager.fetchChatRoomInfoFromServer to get chat room details before calling this method.

Constructors

  • Parameters

    • params: {
          adminList?: string[];
          announcement?: string;
          blockList?: string[];
          createTimestamp?: number;
          description?: string;
          isAllMemberMuted?: boolean;
          isInWhitelist?: boolean;
          maxUsers?: string;
          memberCount?: string;
          memberList?: string[];
          muteExpireTimestamp?: number;
          muteKVList?: Record<string, number>;
          muteList?: string[];
          owner: string;
          permissionType: number;
          roomId: string;
          roomName?: string;
      }
      • OptionaladminList?: string[]
      • Optionalannouncement?: string
      • OptionalblockList?: string[]
      • OptionalcreateTimestamp?: number
      • Optionaldescription?: string
      • OptionalisAllMemberMuted?: boolean
      • OptionalisInWhitelist?: boolean
      • OptionalmaxUsers?: string
      • OptionalmemberCount?: string
      • OptionalmemberList?: string[]
      • OptionalmuteExpireTimestamp?: number
      • OptionalmuteKVList?: Record<string, number>
      • OptionalmuteList?: string[]
      • owner: string
      • permissionType: number
      • roomId: string
      • OptionalroomName?: string

    Returns ChatRoom

Properties

adminList?: string[]

The admin list of the chat room.

announcement?: string

The chat room announcement.

blockList?: string[]

The block list of the chat room.

createTimestamp?: number

Gets the timestamp(ms) when the chat room was created. This property is available once join the chat room.

description?: string

The chat room description.

isAllMemberMuted?: boolean

Whether all members are muted in the chat room.

  • true: Yes.
  • false: No.
isInWhitelist?: boolean

Current user is in allow list or not. This property is available once join the chat room. This property will be updated when current user is added or removed from the white list.

  • true: In white list.
  • false: Not in white list.
maxUsers?: string

The maximum number of users allowed to join a chat room. This field is specified during the creation of a chat room.

memberCount?: string

The number of members in the chat room.

memberList?: string[]

The member list of the chat room.

muteExpireTimestamp?: number

Gets the timestamp(ms) when Current user will be unmuted.

This property is available once join the chat room. This property will be updated when current use is muted or unmuted.

  • Current use is not muted if it is zero.
  • Means cannot get MuteUntilTimeStamp correctly if it is be set with -1;
muteKVList?: Record<string, number>

The mute list of the chat room.

key: userId value: mute expire time

muteList?: string[]

The mute list of the chat room.

2024-12-03 Please use muteKVList instead.

owner: string

The user ID of the chat room owner.

permissionType: ChatRoomPermissionType

The role of the current user in the chat room. For role types, see ChatRoomPermissionType.

roomId: string

The chat room ID.

roomName?: string

The chat room name.