Display a message in the custom chat tab
displayMessage(message, username)
The displayMessage
function on the chat
property of the Kongregate API object can be used to create a virtual chat message from a given user in the custom chat tab. It accepts the following arguments:
Name | Type | Description |
---|---|---|
message | String | The message to display |
username | String | The username the message is from |
Example: Display a message "Hi there!" from user "BenV"
kongregate.chat.displayMessage("Hi there!","BenV");
kongregate.chat.displayMessage("Hi there!","BenV");
Related: