The channel to send the prompt to.
The configuration for the prompt.
Should the prompt wait until all reactions were sent before accepting a response?
Note: this is faster but the reactions wont be sent in order. Default: false
The emojis to serve as choice options.
Should the message be deleted after the prompt is done? Default: true
The message to be sent along with the prompt.
The duration of the prompt Default: 30000
.
The id of the user you want to prompt, if not defined the prompt will accept an answer from anyone.
A promise that resolves to the emoji the user reacts to or null if the user times out.
Prompt for a user response in a certain channel.
The channel to send the prompt to.
The configuration for the prompt.
By default, the promise will resolve with a list of messages regardless
of reaching or not the max criteria.
If this is set to true, the promise will resolve to false
.
How many messages to wait for. Default: 1
If this is set, the prompt will only accept messages starting with this prefix.
The question to be asked.
How long to wait for a response in ms. Default: 30000
The id of the user you want to prompt, if not defined the prompt will accept an answer from anyone.
A promise that resolves to a collection of messages (or false if you set failIfTimeout to true).
Prompt for a user reaction in a certain channel.
The channel to send the prompt to.
The configuration for the prompt.
The emoji for the cancel option. Default: ❌
The emoji for the confirm option. Default: ✅
The question to ask the user. Default: Yes or No?
How long to wait for a response in ms. Default: 30000
The id of the user you want to prompt, if not defined the prompt will accept an answer from anyone.
A promise that resolves to 'yes' if the user confirms, to 'no' if the user cancels or false if the user times out.
Prompt for a user response in a certain channel.
The channel to send the prompt to.
The configuration for the prompt.
The emojis to serve as voting options.
Should the vote message be deleted after the vote is done? Default: false
The message to be sent along with the vote.
The duration of the vote Default: 30000
.
This promise resolves to the following object:
{emojis: [{emoji: 'An emoji from choices[]', count: 0}, ...otherEmojisFromChoices]}
Main Prompter object
The choice function See choice
The message function See message
The reaction function See reaction
The vote function See vote
Generated using TypeDoc
Prompt for a user reaction in a certain channel.