mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
parent
2c6b804fc9
commit
7a8c8f7453
2 changed files with 3 additions and 4 deletions
|
|
@ -37,8 +37,7 @@ bot.getChannelLogs(channel, 100, function(messages) {
|
|||
```
|
||||
|
||||
```js
|
||||
msg.channel.getMessages({limit: 100})
|
||||
.then(messages => {
|
||||
console.log(`${messages.length} messages found`);
|
||||
msg.channel.fetchMessages({limit: 100}).then(messages => {
|
||||
console.log(`${messages.size} messages found`);
|
||||
});
|
||||
```
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue