Answers for "discord .js message thread"

1

discord.js get the message before

message.channel.fetchMessages({limit: 2})
.then(messageMappings => {
let messages = Array.from(messageMappings.values());
let previousMessage = messages[1];
// do something with previous message
})
.catch(error => console.log(error))
Posted by: Guest on July-13-2020
0

discord.js reason

let reason = args.slice(1).join(' ');
    if (!reason) reason = '`None`';
    if (reason.length > 1024) reason = reason.slice(0, 1021) + '...';
Posted by: Guest on May-20-2021

Code answers related to "discord .js message thread"

Browse Popular Code Answers by Language