mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 17:52:55 +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
|
```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
Loading…
Reference in a new issue