FANDOM


ChatPreloadButtons (originally ChatSendButtons) allows users to send a preset message to the Chat. The buttons append to the top by the wiki word mark.

Note: It is recommended to not add too many buttons as they can take up a lot of space.

Usage

To add and modify what preset message buttons appear at the top of the chat, simply add the following in your chat.js above the importArticles.

window.chatSendButtons = [
    {
        label: 'Button label',
        message: 'Some preset message to send.'
    },
    {
        label: 'Spam',
        message: 'Please don\'t spam the chat.'
    },
    {
        label: 'Hello',
        message: 'Hello everyone!'
    }
];
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+