How do I get the current guild id in a client ready event?

I figured it would be client.guild.id but that's undefined. Is there a different way, or can I not access guild in ClientReady?

module.exports = {
    name: Events.ClientReady,
    once: true,
    execute(client) {
        console.log(`Ready! Logged in as ${client.user.tag}`)
        setStatus(client)
    },
}
Was this page helpful?