E
E
Evgeny Fedotov2021-01-31 13:46:54
Node.js
Evgeny Fedotov, 2021-01-31 13:46:54

How to get all user ids using shards?

How to get id of all bot users using shards?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2021-02-02
@Benji888

If you are using discord.js:

(await client.shard.broadcastEval("this.users.cache.map(u => u.id)")).flat(1);

Eris (all shards are connected in a standard way):
client.users.map(u => u.id);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question