Answer the question
In order to leave comments, you need to log in
Discord.js How to display participants on the server?
client.on("message", message => {
if(message.content == `${prefix}staff-list`) {
const ListEmbed = new Discord.MessageEmbed()
.setTitle('Users with the staff role:')
.setDescription(message.guild.roles.cache.find('729044882903007314').members.map(m=>m.user.tag).join('\n'));
message.channel.send(ListEmbed);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question