mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Document awaitResponse
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user