Получите сообщения
// Get message
channel.messages.fetch('99539446449315840')
.then(message => console.log(message.content))
.catch(console.error);
Dizzy Dunlin
// Get message
channel.messages.fetch('99539446449315840')
.then(message => console.log(message.content))
.catch(console.error);
// Get messages and filter by user id
channel.messages.fetch()
.then(messages => console.log(`${messages.filter(m => m.author.id === '84484653687267328').size} messages`))
.catch(console.error);
// Get messages
channel.messages.fetch({ limit: 10 })
.then(messages => console.log(`Received ${messages.size} messages`))
.catch(console.error);