This PR contains fixes for breaking changes caused by the update from Discord.js v12.5.3 to v13.0.1:
As a result of updating to D.js v13, the minimum required Node version increases to 16.6.x. This has been reflected in the README and in the Node version check that runs at every startup.
Update channel type names - they are now uppercase and in line with Discord's naming conventions (e.g. text -> GUILD_TEXT).
This PR contains fixes for breaking changes caused by the update from Discord.js v12.5.3 to v13.0.1:
text
->GUILD_TEXT
).Client
constructor: moveintents
fromClientOptions#ws#intents
toClientOptions#intents
and enableCHANNEL
partial to ensure DMs are received.member.hasPermission()
withmember.permissions.has()
.collection.array()
with[...collection.values()]
.fetchBans()
withbans.fetch()
guild.member(user)
withguild.members.cache.get(user.id)
.channel.send(embed)
->channel.send({ embeds: [embed] })
)guild.owner()
as it has been removed.message.reply()
method as inline replies are used now.TextChannel.sendTyping()
instead ofstartTyping()
andstopTyping()
.awaitReply
core function by updating the object in theawaitMessages
function to match the new required format.Other changes include:
levelCache
Map: swap key-value order (to make more sense in contexts where the permLevel int needs to be retrieved).