diff --git a/guide/creating-your-bot/main-file.md b/guide/creating-your-bot/main-file.md index e3b5affa8..761e44e68 100644 --- a/guide/creating-your-bot/main-file.md +++ b/guide/creating-your-bot/main-file.md @@ -17,9 +17,8 @@ const { token } = require('./config.json'); const client = new Client({ intents: [GatewayIntentBits.Guilds] }); // When the client is ready, run this code (only once) -// We use 'readyClient' for the event parameter to keep it separate from the already defined 'client' -// This is important for TypeScript developers as the parameter will be a client that is ready -// with some properties being non-nullable +// The distinction between `client: Client` and `readyClient: Client` is important for TypeScript Developers. +// It makes some properties non-nullable. client.once(Events.ClientReady, readyClient => { console.log(`Ready! Logged in as ${readyClient.user.tag}`); });