Skip to content

Commit e0effdb

Browse files
committed
Update commands API docs
1 parent 0adeb98 commit e0effdb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_api/commands.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ The Command API lets you add new commands.
99

1010
## Methods
1111

12-
### `#add(command: Object)`
12+
### `#add(commandText: string, command: Object)`
1313

14-
Adds a new command.
14+
Registers a new command for users on the lounge.
15+
16+
`commandText` is what the users will type after `/`, and command is the command object.
1517

1618
Attributes of command:
1719

0 commit comments

Comments
 (0)