ChatSendBeforeEvent Class
Caution
This class is still in pre-release. Its signature may change or it may be removed in future releases.
An event that fires as players enter chat messages.
Properties
cancel
cancel: boolean;
If set to true in a beforeChat event handler, this message is not broadcast out.
Type: boolean
message
read-only message: string;
Message that is being broadcast.
Type: string
sender
read-only sender: Player;
Player that sent the chat message.
Type: Player
targets
read-only 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.)
Type: Player[]
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for