Skip to content

Releases: Ayfri/discord-fetch-messages

v2.5.0

15 Oct 23:32
Compare
Choose a tag to compare

📆 16.10.2022 🏷️ UNRELEASED 💾 33EB43D ♻️ 1 ✏️ 3

♻️ Refactors

✏️ Chores

v2.4.0

21 Aug 01:52
Compare
Choose a tag to compare

📆 21.08.2021 🏷️ 2.4.0 💾 7D118C5 🚀 2 🐛 1 📚 3 ♻️ 1

🚀 New Features

🐛 Bug fixes

📚 Documentation

♻️ Refactors

  • 1403CFF refactor: Move isFetchChannel to an external function. (@Ayfri)

v2.3.0

10 Aug 04:12
Compare
Choose a tag to compare

📆 10.08.2021 🏷️ 2.3.0 💾 D388CC3 🚀 6 📚 1 ♻️ 4

🚀 New Features

  • 140AC0A feat: Add threads parameter to fetchChannel method. (@Ayfri)
  • A8EFC0F feat: Add threads parameter to fetchChannels method. (@Ayfri)
  • A45059F feat: Add threads parameter to fetchGuild method. (@Ayfri)
  • D20DAF2 feat: Add fetchThread & fetchThreads methods. (@Ayfri)
  • DB10CF3 feat: Add possibility to fetch all the threads of a guild from the fetchThreads method. (@Ayfri)
  • 324AF43 feat: Support NewsChannel type for fetching channels. (@Ayfri)

📚 Documentation

  • 0186244 docs: Add information about fetching only active threads. (@Ayfri)

♻️ Refactors

v2.2.1

23 Mar 04:55
Compare
Choose a tag to compare

Fix old functions exports and npm-publish workflow.

Changelog

  • feat: Add workflow_dispatch trigger for npm-publish workflow. (cdefaf1)
  • fix: Fix npm-publish workflow, this should be done. (f506d7e)
  • fix: Fix old functions exports. (0486eb7)

v2.2.0

23 Mar 04:46
Compare
Choose a tag to compare

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 & license properties in package.json. (a501f19)
  • feat: Add types to Fetcher class events. (ca510a6)
  • feat: Export events list. (be3f975)
  • feat: Rewrite old functions in TS. (429faf5)
  • feat: Update package.json description. (96b6fac)
  • fix: Fix npm-publish workflow again. (586a0cf)
  • refactor: Update tsconfig.json. (0b72ad8)
  • style: Prettify code. (6519c98)

v2.1.0

21 Mar 18:58
Compare
Choose a tag to compare

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 fetchChannels method. (055bef8)
  • fix: Fix publish workflow, reformat code. (60660d2)
  • refactor: Ignore package-lock.json. (8271515)
  • refactor: Reformat code. (ce69e42)
  • refactor: Use fetchChannels in fetchGuild. (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

27 Jan 00:38
Compare
Choose a tag to compare

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 & fetchChannelMessages functions. (e57218f)
  • Improved old functions code. (e71e2e3)
  • Remade the .gitignore (193f2bb)
  • Removed types directory to git. (86472a0)

Dependencies

discord.js@12.5.1
@types/node@14.14.22

v1.1.2

22 Nov 16:43
Compare
Choose a tag to compare

This release adds typings and updated dependencies.

Changelog

  • Added typescript@4.1.2 dependency. (410aa40)
  • Added typings. (410aa40)
  • Updated discord.js dependency to discord.js@12.5.0. (760d111)
  • Updated prettier dependency to prettier@2.2.0. (760d111)

v1.1.1

24 Oct 13:00
Compare
Choose a tag to compare

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.log in 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)

v1.1.0

21 Oct 14:47
25053dd
Compare
Choose a tag to compare

Changelog

You can now use this module for any guilds, just add a guildID parameter to the main function.