Skip to content

Releases: timotejroiko/discord.js-light

v3.0.3

20 Jul 19:37
Compare
Choose a tag to compare
  • fix bug and improve error handling in .members.fetch() a4e5351

v3.0.2...v3.0.3

v3.0.2

18 Jul 13:45
Compare
Choose a tag to compare
  • fix voiceStates when not using intents 57dbb30
  • document message caching behavior dbc856c

v3.0.1...v3.0.2

v3.0.1

15 Jul 16:33
Compare
Choose a tag to compare
  • fix "not exported" error db6aca5
  • include own version in Discord.version d5cd7ee

v3.0.0...v3.0.1

discord.js-light v3

15 Jul 11:10
Compare
Choose a tag to compare

Version 3.0.0 marks the next major release, featuring a complete overhaul and redefinition of the goals and direction of this lib towards a more standardized and general-purpose approach.

This release removes all of the convenience methods and focuses solely on cache control with as little interference as possible. V2's convenience methods can easily be re-added by users if needed.

Important changes compared to v2:

  • library now directly accesses discord.js's internal event handlers, which grants more control over caching and should produce less bugs, inconsistencies and/or strange behaviors
  • added the cacheGuilds, cacheChannels, cacheOverwrites, cacheRoles, cacheEmojis and cachePresences client options
  • added the client.sweepUsers() and client.sweepChannels() methods
  • no longer caches channels when sending
  • no longer caches users when replying
  • reworked all .fetch() methods for consistency and some new possibilities
  • added .forge() methods to enable cache-less API interactions
  • added shardConnect and guildEmojisUpdate events
  • reverted the message and messageUpdate events back to default functionality
  • removed the token client option and auto-login feature
  • removed the enablePermissions, enableChannels and trackPresences client options in favor of cacheRoles, cacheOverwrites, cacheChannels and cachePresences
  • removed the clientSweepInterval, userCacheLifetime, channelCacheLifetime, shardCheckInterval and queueLimit client options and their functionality
  • removed the modified settings for shards, intents, messageCacheMaxSize, messageCacheLifetime and messageSweepInterval back to the same defaults as discord.js
  • removed all internal loggers and event listeners
  • removed the internal raw event listener as the library now directly accesses discord.js's internal event handlers instead
  • reverted message.reply() back to default functionality
  • removed client.sweepInactive() in favor of client.sweepUsers() and client.sweepChannels()
  • removed the client.checkShards(), client.getInfo() and message.eval() methods
  • removed the message.commandMessage, message.commandResponseTime, user.lastActive, user.noSweep, channel.lastActive and channel.noSweep properties

v2.8.6...v3.0.0

v2.8.6

11 Jul 16:03
Compare
Choose a tag to compare
  • fix voiceState patching 6b1b74b
  • voice.channel should be null if no channel 4edf9b3

v2.8.5...v2.8.6

v2.8.5

09 Jul 10:31
Compare
Choose a tag to compare
  • fix .voice.channel and .voice.member 644e529

v2.8.4...v2.8.5

v2.8.4

07 Jul 10:20
Compare
Choose a tag to compare
  • backport some fetch methods from v3 26f27f5
  • members.fetch() accepts an id directly and better conforms to discord.js
  • allow guilds.fetch() to fetch multiple guilds (very slow)
  • allow fetching roles and emojis by id
  • allow comments in message.eval()

v2.8.3...v2.8.4

v2.8.3

27 Jun 19:40
Compare
Choose a tag to compare
  • fix bug with message.member 4151401

v2.8.2...v2.8.3

v2.8.2

19 Jun 13:28
Compare
Choose a tag to compare

v2.8.1...v2.8.2

v2.8.1

18 Jun 17:59
Compare
Choose a tag to compare

v2.8.0...v2.8.1