H
H
Hdudu Djid2021-10-29 17:17:30
Node.js
Hdudu Djid, 2021-10-29 17:17:30

My bot changes the number of people once why?

async function change() {
let members = client.guilds.cache.get("891189300375457792").memberCount
client.channels.cache.get('891189300375457792').setName(`On server: ${members}`);
}

var interval = setInterval(function () { change(); }, 20000 );

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RealRzhaka, 2021-10-31
@RealRzhaka

Discord has a limit on the number of channel name changes. Update information every 10 minutes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question