diff --git a/README.md b/README.md index 5951841e2..070556bbb 100644 --- a/README.md +++ b/README.md @@ -29,19 +29,19 @@ discord.js will automatically prefer node-opus over opusscript. ## Example Usage ```js const Discord = require('discord.js'); -const bot = new Discord.Client(); +const client = new Discord.Client(); -bot.on('ready', () => { +client.on('ready', () => { console.log('I am ready!'); }); -bot.on('message', message => { +client.on('message', message => { if (message.content === 'ping') { message.reply('pong'); } }); -bot.login('your token'); +client.login('your token'); ``` ## Links diff --git a/docs/custom/documents/updating.md b/docs/custom/documents/updating.md index 23c794cd1..2dcf502f0 100644 --- a/docs/custom/documents/updating.md +++ b/docs/custom/documents/updating.md @@ -31,13 +31,13 @@ Version 9.0 eschews callbacks in favour of Promises. This means all code relying For example, the following code: ```js -bot.getChannelLogs(channel, 100, function(messages) { +client.getChannelLogs(channel, 100, function(messages) { console.log(`${messages.length} messages found`); }); ``` ```js -msg.channel.fetchMessages({limit: 100}).then(messages => { +channel.fetchMessages({limit: 100}).then(messages => { console.log(`${messages.size} messages found`); }); ```