Document awaitResponse

This commit is contained in:
abalabahaha
2016-04-30 17:25:28 -07:00
parent 96ed5a1e52
commit ba82722264
2 changed files with 15 additions and 2 deletions

View File

@@ -220,6 +220,19 @@ replyTTS(message, content, `callback`)
An alias for `reply(message, content, {tts: true}, callback)`
awaitResponse(message, `prompt`, `options`, `callback`)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wait for a response from the same user in the same channel as an existing message.
- **message** - The original Message_
- **prompt** - a `String Resolvable`_ - a message you want to send to prompt the user
- **options** - `object` containing:
- **tts** - `Boolean`, should message be text-to-speech
- **callback** - `function` that takes the following parameters:
- **error** - error object if any occurred
- **message** - the sent Message_
updateMessage(message, content, `options`, `callback`)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -20,7 +20,7 @@ A Channel Resolvable allows:
- String of User ID
File Resolvable
------------------
---------------
A File Resolvable allows:
@@ -29,7 +29,7 @@ A File Resolvable allows:
- Readable stream
Role Resolvable
------------------
---------------
A Role Resolvable allows: