The player to get available cmomands for.
Parse a message calling a command. Does not trim off a leading command prefix.
const message = "setname weakeyes";
const ctx = new ChatCommandContext(room, room.players.host, message);
await worker.chatCommandHandler.parseMessage(ctx, message);
Context for the message.
The message to parse.
Register a command into the command handler.
The command that was parsed.
worker.chatCommandHandler.parseMessage("ping", "Ping the server.", (ctx, args) => {
ctx.reply("pong!");
});
How to use the command in standard unix command-line command syntax.
A short summary of what the command does, how to use it, etc.
A function to determine whether a player can view this command.
A callback function for when the command is called.
Readonly
roomGenerated using TypeDoc
Get all commands for a player that are available to them and can use.
Returns
All commands that player can use.