ChatService

:
The ChatService is a special service. It cannot be retrieved with :GetService(). While it is possible to retrieve ChatService through the default chat system, most uses can be replicated in alternative ways.
ChatService is received as a parameter from a function used for editing the chat.
ChatService is deprecated in favor of .https://create.roblox.com/docs/en-us/chat/legacy/server-side-chat-modules
=== ===
Returns a newly created ChatService object containing a list of ChatChannels, ChatSpeakers, FilterMessageFunctions, ProcessCommandsFunctions, BindableEvents, the ChatVersion, and all the functions listed below.
== Channels ==
======
Creates a new ChatChannel object.
======
Removes the given ChatChannel object, disconnecting all ChatSpeakers.
======
Finds the ChatChannel with the given ChannelName, or nil if it isn't found.
=== ===
Returns a Table of Channels within the ChatService.
=== ===
Returns a Table of Channels that can be automatically joined by players.
== Speakers ==
======
Creates a ChatSpeaker with the given name.
======
Removes the ChatSpeaker with the given name.
=== ===
Finds and returns a ChatSpeaker with the given name.
=== ===
Returns a Table of all ChatSpeakers.
=== ===
Finds and returns a possible ChatSpeaker with the given username or displayname.
=== ===
Internally (server-side only) unmutes a ChatSpeaker with the given name.
== Commands ==
=== ===
Internal method used to register a ProcessCommandsFunction based on priority level.
=== ===
Internal method used to remove/deregister a ProcessCommandsFunction.
=== ===
Returns if a giver ProcessCommandsFunction has been registered with the ChatService.
== Messages ==
=== ===
Used by the default chat system to send system messages to all players.
=== ===
Internal method used to register a FilterMessageFunction based on priority level.
=== ===
Internal method used to remove/deregister a FilterMessageFunction.
=== ===
Returns if a giver FilterMessageFunction has been registered with the ChatService.
== Internal/Other ==
=== ===
Used by the ChatService to test for and notify the player of chat filter problems.
=== ===
Used to internally filter messages. This function will return true if IsStudio, the fromSpeaker is nil, the message is all spaces, or the message otherwise passes the typical FilterStringAsync check.
=== ===
Similar to InternalApplyRobloxFilter but with additional check in-place, and a tuple as the return type.
=== ===
Attempts to apply all registered FilterMessageFunctions to the given messageObj.
=== ===
Attempts to apply all registered ProcessCommandFunctions to the given message.
=== ===
Increments and then returns the value of the internal MessageIdCounter variable.
=== ===
Uses the giver Player to create a new ChatSpeaker. If fireSpeakerAdded is set to true it also fires a BindableEvent called SpeakerAdded.
=== ===
Likely a test function, as this does not actually create a new ChatSpeaker, it only fires a BindableEvent called SpeakerAdded.
==References==
==External links==
*Server-Side Chat Modules on the Roblox Creator Documentation
Category:Scripting