You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the call.prompt example on the README, I've tried many things, but no matter what I do.. everytime the user responds it cancels and thinks it's timed out.
Is there a fix?
call.prompt('What\'s your favorite ice cream flavor?', { time: 60000 }).then((msg) => {
// Resolves with the response.
if (msg.content.toLowerCase() === 'yes') call.message.channel.send('Cool! Mine too!');
else
call.message.channel.send('Cool!');
}).catch((exc) => {
// Rejects when the command is cancelled, out of time, or surpasses the maximum amount of attempts.
// In this case surpassing the maximum amount of attempts is impossible since there is no filter.
call.message.channel.send('Cancelled prompt.');
});
The text was updated successfully, but these errors were encountered:
Using the call.prompt example on the README, I've tried many things, but no matter what I do.. everytime the user responds it cancels and thinks it's timed out.
Is there a fix?
The text was updated successfully, but these errors were encountered: