From b5aee829160bfa4e3106428597e2cea1196af7e9 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..6248d8e 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(channels => channel.isText() && channel.name.startsWith('g'))); +``` ## Event list :