mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
committed by
Amish Shah
parent
2c6b804fc9
commit
7a8c8f7453
@@ -37,8 +37,7 @@ bot.getChannelLogs(channel, 100, function(messages) {
|
|||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
msg.channel.getMessages({limit: 100})
|
msg.channel.fetchMessages({limit: 100}).then(messages => {
|
||||||
.then(messages => {
|
console.log(`${messages.size} 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