Skip to content

Commit

Permalink
fix updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
amishshah committed Sep 4, 2016
1 parent 4022c81 commit 302b1da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/custom/documents/updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`
Expand All @@ -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`);
});
```
2 changes: 1 addition & 1 deletion docs/docs.json

Large diffs are not rendered by default.

0 comments on commit 302b1da

Please sign in to comment.