Skip to content

Commit

Permalink
Update commands API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlMcKinlay committed Aug 21, 2020
1 parent 0adeb98 commit e0effdb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _api/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ The Command API lets you add new commands.

## Methods

### `#add(command: Object)`
### `#add(commandText: string, command: Object)`

Adds a new command.
Registers a new command for users on the lounge.

`commandText` is what the users will type after `/`, and command is the command object.

Attributes of command:

Expand Down

0 comments on commit e0effdb

Please sign in to comment.