mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
committed by
Amish Shah
parent
2c6b804fc9
commit
7a8c8f7453
@@ -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
Reference in New Issue
Block a user