Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues using call.prompt #7

Open
PlainDevelopment opened this issue Jun 9, 2021 · 0 comments
Open

Issues using call.prompt #7

PlainDevelopment opened this issue Jun 9, 2021 · 0 comments

Comments

@PlainDevelopment
Copy link

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.');
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant