Skip to content

Commit

Permalink
feat: Update README with new fetchChannels method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayfri committed Mar 21, 2021
1 parent 9e29b5a commit b5aee82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ fetcher.on('fetchChannel', async channel => {
await message.channel.send(`Fetching <#${channel.id}>.`);
});

await fetcher.fetchGuild(guildID);
await fetcher.fetchChannel(channel);
```
const guildMessages = await fetcher.fetchGuild(guildID);
const channelMessages = await fetcher.fetchChannel(channel);

##
const channelsMessages = await fetcher.fetchChannels(guild.channels.filter(channels => channel.isText() && channel.name.startsWith('g')));
```

## Event list :

Expand Down

0 comments on commit b5aee82

Please sign in to comment.