Script API - v1.21.120.21
    Preparing search index...

    Class ChatSendBeforeEventBeta

    An event that fires as players enter chat messages.

    Index

    Constructors

    Properties

    Constructors

    Properties

    cancel: boolean

    If set to true in a beforeChat event handler, this message is not broadcast out.

    This property can't be read in early-execution mode.

    message: string

    Message that is being broadcast.

    This property can't be read in early-execution mode.

    sender: Player

    Player that sent the chat message.

    This property can't be read in early-execution mode.

    targets?: Player[]

    Optional list of players that will receive this message. If defined, this message is directly targeted to one or more players (i.e., is not broadcast.)

    This property can't be read in early-execution mode.