My bot not updating when someone invites my bot to their/another server. I have to restart the code, then it is working. I want that my bot updated when someone invites in status.
My current code is:
PREFIX = <
client.on("ready", () => {
console.log(`${client.user.username} ready!`);
client.user.setActivity(`${PREFIX}help | ${PREFIX}play ${client.guilds.cache.size} servers `, { type: "LISTENING" });
});