Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Latest commit

 

History

History
26 lines (16 loc) · 467 Bytes

chat_commands.md

File metadata and controls

26 lines (16 loc) · 467 Bytes

Chat Command

Event emitted when a user uses a "/" command.

This event is a Frontend only event, as it is handled within the browser itself.

Event name: API.CHAT_COMMAND

Example Listener

API.on(API.CHAT_COMMAND, function(data){
    console.log(data);
});

Packet Example

"/test"

Returns string containing the entered command

Please Note: the default commands provided by plug.dj, will not emit this event!