Class RoomSetPrivacyEvent<RoomType>

Emitted when the privacy of the room is updated.

Type Parameters

Hierarchy

  • BasicEvent
    • RoomSetPrivacyEvent

Implements

Properties

eventName: "room.setprivacy"
eventName: "room.setprivacy"
message: undefined | AlterGameMessage

The message that this event originated from.

newPrivacy: PrivacyType

The new privacy of the room.

oldPrivacy: PrivacyType

The old privacy of the room.

room: RoomType

The room or client that the event came from.

Accessors

  • get alteredPrivacy(): PrivacyType
  • The altered privacy to set the room to, if changed.

    Returns PrivacyType

Constructors

Methods

  • Revert the room's privacy to its old privacy.

    Returns void

  • Change the privacy that the room was set to.

    Parameters

    Returns void

Generated using TypeDoc