Skip to content

discord.js-light v3

Compare
Choose a tag to compare
@timotejroiko timotejroiko released this 15 Jul 11:10
· 181 commits to v3 since this release

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