From 6bc1e03242366f3b0202092e3a4b657fca3d1d0a Mon Sep 17 00:00:00 2001 From: Ayfri Date: Sun, 21 Mar 2021 19:40:52 +0100 Subject: [PATCH] feat: Update README with new fetchChannels method. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1f23eef..70e6cfe 100644 --- a/README.md +++ b/README.md @@ -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(channel => channel.isText() && channel.name.startsWith('g'))); +``` ## Event list :