Kongregate Developers

Displaying chat text

This function is part of the custom chat API.

Displaying chat text can be done with the displayMessage function, which takes a message and a username. The message is the message you wish to display, while the username is the user you want the message to be displayed from.

  • message:String - The message to display
  • username:String - The username the message should come from

Example: Display a message "Hi there!" from user "BenV"

kongregate.chat.displayMessage("Hi there!","BenV");