skeldjs
    Preparing search index...

    Class PlayerSetRoleEvent<RoomType>

    Emitted when a player has their player role updated.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    canceled: boolean
    eventName: "player.setrole" = ...
    message: undefined | SetRoleMessage

    The message that this event originated from.

    newRole: typeof BaseRole

    The new role that the player has, if any.

    oldRole: undefined | typeof BaseRole

    The role that the player had before, if any.

    player: Player<RoomType>

    The player that this event is for.

    room: RoomType

    The room or client that the event came from.

    eventName: "player.setrole" = ...

    Accessors

    Methods