mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Small docs changes for consistency (#617)
This commit is contained in:
committed by
GitHub
parent
910f47240d
commit
6bfad00229
@@ -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`);
|
||||
});
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user