json list of random discord join messages code example
Example 1: how to send a message discord.js
message.reply("message here");
message.channel.send("message here");
Example 2: how to read if a person has send a message on discord.js
client.on('message', message => {
let filter = msg => {
return msg.content.toLowerCase() == message.content.toLowerCase() &&
msg.author == message.author;
}
message.channel.awaitMessages(filter, {
maxMatches: 1,
time: 5 * 1000
}).then(collected => {
}).catch(console.error);
});