Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to log all messages discord.js

const fetched = await client.channels.get("505989241600213012")
.fetchMessages({limit: 1})
.then(messages => console.log(`[${messages.first().author.name}]${messages.first().content}`));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #log #messages
ADD COMMENT
Topic
Name
8+6 =