T
T
TolaF2020-05-23 17:40:05
JavaScript
TolaF, 2020-05-23 17:40:05

How to make the bot send a message to each server member on command?

How to make the bot send a message to each server member on command?

Help!

discord.js version: 11.6.4

Moderators
I'm sorry, but I'm bad at formulating questions, if anything, correct me)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CatCatcher, 2020-05-23
@TolaF

let members = message.guild.members.array();
for (let member in members) {
    member.user.send("сообщение");
};

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question