mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
fix updating docs
This commit is contained in:
@@ -12,7 +12,7 @@ Here are a few examples of methods that has changed:
|
|||||||
|
|
||||||
* `Client.sendMessage(channel, message)` ==> `TextChannel.sendMessage(message)`
|
* `Client.sendMessage(channel, message)` ==> `TextChannel.sendMessage(message)`
|
||||||
* `Client.sendMessage(user, message)` ==> `User.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})`
|
* `Client.getChannelLogs(channel, limit)` ==> `TextChannel.fetchMessages({options})`
|
||||||
* `Server.detailsOfUser(User)` ==> `Server.members.get(User).properties` (retrieving a member gives a GuildMember object)
|
* `Server.detailsOfUser(User)` ==> `Server.members.get(User).properties` (retrieving a member gives a GuildMember object)
|
||||||
* `Client.joinVoiceChannel(voicechannel)` => `VoiceChannel.join()`
|
* `Client.joinVoiceChannel(voicechannel)` => `VoiceChannel.join()`
|
||||||
@@ -30,13 +30,13 @@ For example, the following code:
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
bot.getChannelLogs(channel, 100, function(messages) {
|
bot.getChannelLogs(channel, 100, function(messages) {
|
||||||
console.log(messages.length + " messages found);
|
console.log(`${messages.length} messages found`);
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
msg.channel.getMessages({limit: 100})
|
msg.channel.getMessages({limit: 100})
|
||||||
.then(messages => {
|
.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
Reference in New Issue
Block a user