TypeError: Cannot read property 'cache' of undefined error

Hello, I’m using discord js (v12) when I use the command, I get the error UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘cache’ of undefined on the line that says client.guilds.cache.size. Can anyone help?

Hi! Can you please give us your project’s URL? Thanks!
(tip: the live preview link)