# Using client values in commands

This one is easy. If you want any value from the client object, normally, you'd do this:

client.guilds.size;
client.guilds.cache.size;

However, in Commando, you have to use this to get these values.

this.client.guilds.size;
this.client.guilds.cache.size;

It's that simple!

You're browsing the guide for discord.js v12. Check out what's new in discord.js v13.
[Dismiss for 1 week]