fix updating docs

This commit is contained in:
Amish Shah
2016-09-04 14:12:20 +01:00
parent 4022c8167f
commit 302b1da9df
2 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ Here are a few examples of methods that has changed:
* `Client.sendMessage(channel, message)` ==> `TextChannel.sendMessage(message)`
* `Client.sendMessage(user, message)` ==> `User.sendMessage(message)`
* `Client.updateMessage(message, "New content") ==> `Message.edit("New Content")`
* `Client.updateMessage(message, "New content")` ==> `Message.edit("New Content")`
* `Client.getChannelLogs(channel, limit)` ==> `TextChannel.fetchMessages({options})`
* `Server.detailsOfUser(User)` ==> `Server.members.get(User).properties` (retrieving a member gives a GuildMember object)
* `Client.joinVoiceChannel(voicechannel)` => `VoiceChannel.join()`
@@ -30,13 +30,13 @@ For example, the following code:
```js
bot.getChannelLogs(channel, 100, function(messages) {
console.log(messages.length + " messages found);
console.log(`${messages.length} messages found`);
});
```
```js
msg.channel.getMessages({limit: 100})
.then(messages => {
console.log(messages.length + " messages found);
console.log(`${messages.length} messages found`);
});
```

File diff suppressed because one or more lines are too long