ChatMessageEventclass

A chat message event. Handlers can set `Sandbox.ChatMessageEvent.Suppress` to true to prevent the message from being delivered, or set `Sandbox.ChatMessageEvent.RecipientFilter` to control per-connection visibility.

objectChatMessageEvent
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.ChatMessageEvent

Constructors1

Showing 1 constructors

Properties4

Showing 4 properties

public string Sandbox.ChatMessageEvent.Message { get; set; }PUBLICGETSET

The chat message text.

Returns:string

public System.Func`2<Sandbox.Connection,bool> Sandbox.ChatMessageEvent.RecipientFilter { get; set; }PUBLICGETSET

Optional per-connection visibility predicate. Return false to prevent a specific connection from receiving the message.

Returns:Func<Connection,bool>

public bool Sandbox.ChatMessageEvent.Suppress { get; set; }PUBLICGETSET

Set to true to prevent this message from being delivered.

Returns:bool

On this page