Answer the question
In order to leave comments, you need to log in
Why does this code not work correctly?
I'm writing a discord bot. My bot shows how many people, and then just does not write. Here is the code:
async function change() {
let members = client.guilds.cache.get("891189300375457792").memberCount
client.channels.cache.get('891189300375457792').setName(`На сервере: ${members}`);
}
var interval = setInterval(function () { change(); }, 20000 );
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