Here is my code:
try {
var collectedMessages = await msg.author.dmChannel.awaitMessages(true, { time: 30000, max: 1, errors: ['time'] });
} catch (e) {
msg.author.send("Looks like you took too long to reply!");
};
And it doesn't react to messages and doesn't timeout. I'm on v13.3.1
The arguments are invalid. In v13, only the options argument is present. Change it to this:
await msg.author.dmChannel.awaitMessages({
time: 30000,
max: 1,
errors: ['time'],
filter: () => true // I wouldn't recommend this but it's what you want
})