Skip to content

Commit

Permalink
docs: Fix docs formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayfri committed Aug 10, 2021
1 parent fbdee49 commit 7837176
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ const guildMessages = await fetcher.fetchGuild(guildID);
const channelMessages = await fetcher.fetchChannel(channel);
const threadMessages = await fetcher.fetchThread(thread);

const channelsMessages = await fetcher.fetchChannels(guild.channels.filter(channel => channel.isText() && channel.name.startsWith('g')));
const channelsMessages = await fetcher.fetchChannels(
guild.channels.filter(channel => channel.isText() && !channel.isThread() && channel.name.startsWith('g'))
);
const guildMessagesAndThreads = await fetcher.fetchGuild(guildID, true);

const threadsMessages = await fetcher.fetchThreads(threadsIDs, parentChannelOfThreads);
Expand All @@ -38,8 +40,8 @@ const threadsMessages = await fetcher.fetchThreads(threadsIDs, parentChannelOfTh
| `fetchChannel` | Emitter when fetching a Channel. | `channel`: The channel fetched. |
| `fetchGuild` | Emitted when fetching a Guild. | `guild`: The guild fetched. |
| `fetch` | Emitted after fetched a bulk a of messages, can fetch 0 to 100 messages. | `length`: The number of messages fetched.<br/>`messages`: The messages fetched, as a Collection. |
| `fetchThread` | Emitted when fetching a Thread. | `thread`: The thread
fetched.<br/>`channel`: The parent channel of the Thread. |
| `fetchThread` | Emitted when fetching a Thread. | `thread`: The thread fetched.<br/>`channel`: The parent channel of the thread. |

You can also use a `fetching` boolean property that is set to true when fetching a bulk of message, then to false.

> Note :
Expand Down

0 comments on commit 7837176

Please sign in to comment.