discord js get the message before

Solutions on MaxInterview for discord js get the message before by the best coders in the world

showing results for - "discord js get the message before"
Elías
10 Jun 2020
1message.channel.fetchMessages({limit: 2})
2.then(messageMappings => {
3let messages = Array.from(messageMappings.values());
4let previousMessage = messages[1];
5// do something with previous message
6})
7.catch(error => console.log(error))