mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 22:51:32 +00:00
Document awaitResponse
This commit is contained in:
parent
96ed5a1e52
commit
ba82722264
2 changed files with 15 additions and 2 deletions
|
|
@ -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`)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue