Skip to content
Advertisement

Discord.JS AwaitMessages

In the line of “message.channel.awaitmessages” i think the code is bad writted, the thing i want to do is to await for 1 message that is a number btw 0 and 23.

Here is the corresponding code :

JavaScript

Advertisement

Answer

You need to update your filter for this to work:

JavaScript

Additionally the .then() needs a collected too.

JavaScript

It would also be worth trying out async / await. Wich would allow you to do:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement