Releases: Ayfri/discord-fetch-messages
Releases · Ayfri/discord-fetch-messages
v2.5.0
📆 16.10.2022 🏷️ UNRELEASED 💾 33EB43D ♻️ 1 ✏️ 3
♻️ Refactors
✏️ Chores
v2.4.0
📆 21.08.2021 🏷️ 2.4.0 💾 7D118C5 🚀 2 🐛 1 📚 3 ♻️ 1
🚀 New Features
332C19Dfeat: Add export forFetchChanneltype. (@Ayfri)B264A89feat: AddfetchGuildsmethod. (#15) (@Ayfri)
🐛 Bug fixes
📚 Documentation
846E1B5docs: Add missing docs, fix parts of doc. (@Ayfri)7837176docs: Fix docs formatting. (@Ayfri)FBDEE49docs: Update documentation and information. (@Ayfri)
♻️ Refactors
v2.3.0
📆 10.08.2021 🏷️ 2.3.0 💾 D388CC3 🚀 6 📚 1 ♻️ 4
🚀 New Features
140AC0Afeat: Addthreadsparameter tofetchChannelmethod. (@Ayfri)A8EFC0Ffeat: Addthreadsparameter tofetchChannelsmethod. (@Ayfri)A45059Ffeat: Addthreadsparameter tofetchGuildmethod. (@Ayfri)D20DAF2feat: AddfetchThread&fetchThreadsmethods. (@Ayfri)DB10CF3feat: Add possibility to fetch all the threads of a guild from thefetchThreadsmethod. (@Ayfri)324AF43feat: SupportNewsChanneltype for fetching channels. (@Ayfri)
📚 Documentation
♻️ Refactors
v2.2.1
v2.2.0
This release adds typings for Fetcher class events.
It also adds types to the old deprecated functions, because why not ?
Changelog
- feat: Add
author,bugs&licenseproperties inpackage.json. (a501f19) - feat: Add types to
Fetcherclass events. (ca510a6) - feat: Export events list. (be3f975)
- feat: Rewrite old functions in TS. (429faf5)
- feat: Update
package.jsondescription. (96b6fac) - fix: Fix
npm-publishworkflow again. (586a0cf) - refactor: Update
tsconfig.json. (0b72ad8) - style: Prettify code. (6519c98)
v2.1.0
This release adds a simple way to fetch multiple channels and follow more conventional things.
const fetcher = new Fetcher(client);
const channelsMessages = await fetcher.fetchChannels(guild.channels.filter(channel => {
// Only getting textchannels starting with 'g'
return channel.isText() && channel.name.startsWith('g'))
});Changelog
- chore(deps): Update dependencies. (d2eb4ee)
- feat: Add
fetchChannelsmethod. (055bef8) - fix: Fix publish workflow, reformat code. (60660d2)
- refactor: Ignore
package-lock.json. (8271515) - refactor: Reformat code. (ce69e42)
- refactor: Use
fetchChannelsinfetchGuild. (a2dd77c) - style: Change prettier configuration. (16f4445)
Dependencies
@types/node: 14.14.21 => 14.14.35
@types/node: 4.1.3 => 4.2.3
v2.0.0
This is a big update adding the Fetcher class & deprecating old functions.
const {Fetcher} = require('discord-fetch-messages');
// [...]
const fetcher = new Fetcher(client);
fetcher.on('fetchChannel', async channel => {
await message.channel.send(`Fetching <#${channel.id}>.`);
});
// [...]
await fetcher.fetchGuild(guildID); // Fetching a guild from ID.
await fetcher.fetchChannel(channel); // Fetching a channel.Changelog
- Added Fetcher class. (8d136fa)
- Added TSDoc. (f72f382)
- Deprecated old
fetchGuildMessages&fetchChannelMessagesfunctions. (e57218f) - Improved old functions code. (e71e2e3)
- Remade the
.gitignore(193f2bb) - Removed
typesdirectory to git. (86472a0)
Dependencies
v1.1.2
v1.1.1
This version adds the full README plus some fixes.
Changelog
- Added badges in the README. (d180b08)
- Added documentation in the README. (d180b08)
- Added keywords in the package.json. (3e33359)
- Added more
console.login the process to be more explanatory on what's happening. (693564e) - Added warnings in the README because this package spams the Discord API so you have to be careful. (d180b08)
- Fixed JSDoc. (25c29fc) (693564e)