how to log all messages discord js

Solutions on MaxInterview for how to log all messages discord js by the best coders in the world

showing results for - "how to log all messages discord js"
Juliana
27 Aug 2020
1const fetched = await client.channels.get("505989241600213012")
2.fetchMessages({limit: 1})
3.then(messages => console.log(`[${messages.first().author.name}]${messages.first().content}`));