You need to use client.setActivity() and then use the client.guilds.cache.size value. For example: client.setActivity(`Currently in ${client.guilds.cache.size} servers`);