Releases: timotejroiko/discord.js-light
Releases · timotejroiko/discord.js-light
v3.0.3
- fix bug and improve error handling in .members.fetch() a4e5351
v3.0.2
v3.0.1
discord.js-light v3
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
andcachePresences
client options - added the
client.sweepUsers()
andclient.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
andguildEmojisUpdate
events - reverted the
message
andmessageUpdate
events back to default functionality - removed the
token
client option and auto-login feature - removed the
enablePermissions
,enableChannels
andtrackPresences
client options in favor ofcacheRoles
,cacheOverwrites
,cacheChannels
andcachePresences
- removed the
clientSweepInterval
,userCacheLifetime
,channelCacheLifetime
,shardCheckInterval
andqueueLimit
client options and their functionality - removed the modified settings for
shards
,intents
,messageCacheMaxSize
,messageCacheLifetime
andmessageSweepInterval
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 ofclient.sweepUsers()
andclient.sweepChannels()
- removed the
client.checkShards()
,client.getInfo()
andmessage.eval()
methods - removed the
message.commandMessage
,message.commandResponseTime
,user.lastActive
,user.noSweep
,channel.lastActive
andchannel.noSweep
properties
v2.8.6
v2.8.5
- fix .voice.channel and .voice.member 644e529
v2.8.4
- 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
- fix bug with message.member 4151401