Я хотел бы сделать сообщение с разногласиями. js, но у меня есть ошибка. Вот мой код:
message.channel.send('hello').then(msg => {
message.channel.awaitMessages(msg, {
max: 1,
time: 10000,
errors: ['time'] })
.then(collected => message.channel.send('this is a test'))
.catch(collected => msg.delete());
});
Вот моя ошибка:
if (collect && this.filter(...args, this.collected)) {
^
TypeError: Function.prototype.apply was called on [object Object], which is a object and not a function