AddGlobalChat
Adds a remote global-chat panel with rules, cooldowns, reporting, and conversation persistence.
AddGlobalChat
What it does
Adds a remote global-chat panel with rules, cooldowns, reporting, and conversation persistence.
When to use it
Use it when your experience needs XLQP's built-in global chat, direct messages, moderation rules, and local conversation history.
No authentication URL required
Global Chat uses the service endpoint built into XLQP. You do not need to provide or configure an endpoint.
ElementFunction:AddGlobalChat(ChatConfig)
AITab:AddGlobalChat({
Name = "Global Chat",
Height = 430,
RefreshTime = 2,
Limit = 50,
MaxMessageLength = 350,
BotId = "1351947660151750759",
Rules = "Follow the rules. Be respectful, no spam, no leaking personal info.",
DisclaimerFile = "VerbalHubExample/global_chat_disclaimer.json"
})Behavior and return value
Call this method on the compatible section, tab, panel, or element container shown by the signature. Store the returned value when you need to update, read, or destroy the element later.
Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.