The main function of the library, fetchMessages(), is now complete. It allows you to easily fetch large amounts of Discord messages.
It allows you to filter messages so that only the fields you need are returned. You can also choose whether to include additional data such as guild, channel, message authors (authors), interaction authors (interactions), and webhooks, making them easier to access. When enabled, authors, interactions, and webhooks store all the message authors in these maps along with an array of the IDs of the messages they sent (if the id field was selected), making it easy to access all the messages related to a specific author or webhook.
To make handling large amounts of data easier, I added several methods and properties such as .get("ID") for messages, even if it’s an array, .first(NUMBER) and .last(NUMBER) for messages, authors, interactions, and webhooks, allowing you to get multiple objects from the array/map.
To improve readability in the console, if messages, authors, interactions and webhooks contain more than five entries, they will be replaced by [Messages], [Authors], [Interactions], and [Webhooks]. You can access the entire array or map via the .raw property.
- 4 devlogs
- 24h
- Frictionless