Update discord.js to the latest version 🚀 #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The dependency discord.js was updated from
11.6.1
to12.0.0
.This version is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
Publisher: hydrabolt
License: Apache-2.0
Release Notes for 12.0.0
See the updating guide for a better representation of what changed and how you have to change/adapt your code.
Guild#fetchMembers
removed in favour ofGuildMemberStore#fetch
(^)Client#setGame
and replaces it withClient#setActivity
while also adding a Presence store and a Presence structure (c4df250)Guild#deleteEmoji
in favour ofEmoji#delete
(c93c4ad)Attachment
in favour ofMessageAttachment
(methods stay the same) (d6b276b)MessageSearchOptions#sortBy
now defaults totimestamp
instead ofrecent
(291af7e)EvaluatedPermissions
(0a05761)MessageMentions#has
(2f84d95)GuildMember#permissionsFor
takes options object (61da73f)Collection.find()
/findKey()
(4122db0)Receiver#createStream
should take options (4a1b55d)play
(2b5fc77)StreamDispatcher#end
renamed toStreamDispatcher#finish
(6567319)MessageEmbed
's max length checks (9810bdb)Message#member
is now a getter (d93d628)Emoji
class, forEmoji
, nowGuildEmoji
andReactionEmoji
(aa3407f)lastMessage
property fromTextBasedChannel
,User
andMember
to a getter (630009f)Collection
methods and argument types and addCollection#partition
(a732402)client
,guild
,_content
non enumerable inMessageMentions
(e8ab049)VoiceConnection#client
andVoiceWebsocket#client
as getters (18646b7)Collection#deleteAll
(8e0ea9a)WebhookClient#token
property non-enumerable (96a0655)Client#voice
(c822563)createVoiceBroadcast
tocreateBroadcast
(9a092b6)Client#voiceConnections
(70d4b44)Guild#voiceConnection
=>Guild#voice#connection
(dd44647)VoiceBroadcast.{dispatchers -> subscribers}
(72dd872)Util#splitMessage
always returns an array (e645dd6)Guild#defaultRole
toRoleStore#everyone
(2df4f22)passes
(Discord drops duplicated audio packets now) (c715ed9)util
alias export (53a1f8f)MessageEmbed
builder field manipulation in line with underlying array functionality (#3761) (b727f6c)disableEveryone
renamed todisableMentions
(9cb306c)Additions
ClientOptions
(87e5a45)Message#edit
to accept aMessageEmbed
as options parameter (b7c55f0)after
option when fetching users who reacted with an emoji (f40a5e9)MessageEmbed
(63f6247)TextBasedChannel#bulkDelete
now accepts an array of ids and handles cases of 0 or 1 message(s) (3c0d7b8)Guild#verified
(69d8408)TextChannel#setNSFW
(0fc9459)Base
,CategoryChannel
,ClientApplication
,ClientUserChannelOverride
,ClientUserGuildSettings
,RichPresenceAssets
,UserConnection
,VoiceRegion
(0a05761)GuildChannel#setUserLimit
to reset when passing null (6254490)ReactionCollector#remove
on all reaction removals (09315ae)Shard#ready
property and related events (196cf76)GuildChannel#permissionsFor
to resolve permissions based off a role (b846cbd)Permissions#toArray
(d5b0cf9)GuildMember#managable
(36555c1)GuildChannel#fetchInvites
(47bc0fc)Guild#manageable#
getter (ef4bd92, e431ccd)Guild#mfaLevel
property (b3ff7c7)GuildChannelStore#create
options (c9c2d66)DiscordApiError#method
property (62605c4)Collection#tap
method (7a3a4d1)Collection#sweep
method (7a3a4d1)GuildEmoji#deletable
getter (fca6d3b)Shard#kill
method (fc81924)'Guild#defaultMessageNotifications
(30c7d6d, 270a278, 95b2dd3)execArgv
toShardingManager
(bfbb723, 6b3bfdd, 93f8c85, 938d87d)GuildEmoji#fetchAuthor
(e0cbf0b, f963621)Message#url
getter (ba32eec)PRIORITY_SPEAKER
(b38f537)Message#cleanContent
function toUtil
(f3d7f7c)presenceUpdate
(08eff66)Guild#fetchVanityCode()
(f8057b0)WEBHOOKS_UPDATE
events (0401b8a)GuildEmbed
(5787dee)UNKNOWN_WEBHOOK
error code (6be8172)ClientOptions#retryLimit
(be4d6f9)TextBasedChannel#lastPinTimestamp
andTextBasedChannel#lastPinAt
(e96a603)RateLimitPerUser
(d4c0bb2)ColorResolvable
(62e7e26)Emoji#createdAt
andEmoji#createdTimestamp
getters from GuildEmoji (71c04a3)ClientUser#setActivity
(1ee417c)GuildChannel#rateLimitPerUser
(8ec3b51)MessageEmbed#setTimestamp
to take a timestamp (1fe3608)ShardingManager
(ab3a439)GuildChannel
(d92ee2f)GuildChannel#create
to accept a position (a8b47a7) (21ec031)Presence#clientStatus
(75e264d)MessageEmbed#length
(1db7899)HTTPError
class (dd8ba00)Partials
(5c3f5d7) (6af0da1) (161f907)Webhook#url
getter (c078682)ClientVoiceManager
(70d4b44)ColorResolvable
(520810d)Invite#deletable
getter (c4b7957)VoiceChannel#editable
(870528e).voice
(ce1e3d2)Stream
permission (5154850)Guild#setRolePositions
method (8bc8ffe)Teams
support (a22aabf)Guild#edit
method and addGuild#setBanner
method (adb0823)Util#escapeMarkdown
(00c4098)for-await-of
loops (6d3c55b)Permissions#any
(a6810e2)VoiceState#kick
method (c86a615)Guild#partnered
(6f83e71)Constants#verificationLevels
(37ecf7b)@discordjs/collection
package (dad0cd8)VoiceState#streaming
(a8f06f2)MessageAttachment#spoiler
property (38d370f)MEMBER_MOVE
,MEMBER_DISCONNECT
,BOT_ADD
,MESSAGE_BULK_DELETE
,MESSAGE_PIN
,MESSAGE_UNPIN
,INTEGRATION_CREATE
,INTEGRATION_UPDATE
,INTEGRATION_DELETE
) (1bcc0c2) (a69ebbe)Webhook#avatarURL
method (330d5db)MessageFlags.FLAGS
(SOURCE_MESSAGE_DELETED
,URGENT
) &User#system
(4378283)Guild#systemChannelFlags
(f578cce)GuildResolvable
to include more structures (b4f00bf)Webhook#type
property andWebhook#created*
getters (ea76a56)RichPresenceAssets#largeImageURL
(bf31b28)PRIORITY_SPEAKING
bit (b5825c3)ImageURLOptions
(8014ddc)Guild#fetchBan
method (c779fe3)INVITE_CREATE
andINVITE_DELETE
events (929ff9c)MessageReaction#remove
method andClient#messageReactionRemoveEmoji
(030d263)14
,15
) (ef8acec)Guild#rulesChannel
andGuild#publicUpdatesChannel
(bea6da6)Collector#resetTimer
(acf724e)GuildEmoji
andInvite
toGuildResolvable
(91a025c)article
embed type (31a3a86)Fixes
Util.splitMessage
handle more edge cases (e58ff64)Util.mergeDefault
andUtil.convertToBuffer
to be destructured (58d8528)GuildMember#addRoles
andGuildMember#removeRoles
return the member before the change (84153be)presenceUpdate
fires twice, oldMember and newMember being the same both times (30dd3e0)MessageReaction#count
always being 1 (4e028d7)Guild#afk
,Guild#systemChannel
andGuild#icon
not removeable (b8a37b6)ClientUserGuildSettings
(87fa74a)userUpdate
not triggering for initial setting (or removal) of avatars (f95ae4f)Guild#setChannelPositions
(41c4999)GuildChannel#deletable
not allowing guild ID to be passed (3767b35)MessageRection#id
for default emojis (25ece18)VoiceConnection#setSpeaking
not returning the correct value (3871662)GuildAuditLogs
(8fbae13)Client#login
(69dcfa0)VoiceConnection.playFile
fails to be called twice (6b249ba)GuildMember#joinedTimestamp
(8d7e745)GuildChannel#edit
andRole#edit
with a position being incorrect (37f5256)Client#login
not using env.token (0277d1d)User#bot
being undefined (b255af0)TextBasedChannel#startTyping
(94a4a06)Guild#addMember
(21d09f3)toString
for channels (abb93c9)Message#edit
(59d5c5a)ReactionEmojis
to succeed (0f7ce3f)MessageReaction#count
twice when reacting to a message (513dbf2)GuildEmojiRoleStore
(d041cb2)MessageReaction
(4e0e64d)voiceSessionID
after changing server region (ef138fd)Role#edit
(f985b6b)guildMemberRemove
(b955a51)SreamDispatcher
(e845758)ClientUser
presence with provided one inClientOptions
(61ad947)Client#generateInvite
(8d065fa)Webhook#edit
from always trying to useclient.channels
(f293ddd, 077d41f)new Buffer
(42ce4f8)discord.gg/invite/<code>
invites inDataResolver
regex (ddab809)GuildEmoji#deletable
check guild permissions instead of channel ones (6cde6de)xsalsa20_poly1305_lite
andxsalsa20_poly1305_suffix
(43c92c1)Util#arraysEqual
in favor of new array comparison to stop guild from losing features inGuild#equals
(d02c303)GuildMember#joinedAt
returning an Invalid Date (46b19bb)VoiceChannel#deletable
returning true without required Connect permissions (0be0d25)Shard#send
andShardClientUtil#send
returning false on large payloads (512af54, c5fea45)ReactionUserStore#fetch
to be consistent withMessageStore#fetch
(0970848)GuildMember
joined properties as nullable and allow fetching a new member in that case (13bfceb, 5071477)StreamDispatcher#_step
_writeCallback
being called multiple times (04618f5)seek
option in voice (1cdee7b)FFMPEG_ARGUMENTS
when using seek (bf738b3)ShardingManager#respawnAll
iteration (f67d682)MessageReaction
to only delete cache if count and users are both empty (3a7a7d7)GuildEmoji#edit
and other issues (4ae58f6)Util.basename
being unreliable (0f63c50)VoiceChannel#members
should be a Collection, not an Array (7968442)GuildChannel#setParent
should allow channel to be a Snowflake (8ac6648)ReactionCollector#remove
when reaction is removed by collected user (038b142)voiceStateUpdate
onguildMemberRemove
(183ba25)MessageEmbed#proxyURL
property to video (7006f00)Commits
The new version differs by 1392 commits.
2338594
Merge branch 'master' into stable
3142d8c
v12.0.0
a133768
v12.0.0
7d40c43
chore: merge v12-dev master into stable
d7c5baf
chore: update discordjs/discord.js references
f4b1b39
feat: document intent error code messages (#3871)
2d67fbb
docs: clarify which checks GuildMember#manageable does (#3870)
544bb78
refactor: make LimitedCollection an implementation detail (#3872)
c7f4485
docs(PartialRoleData): id is optional (#3866)
713309e
fix(playinterface): lazy require VoiceBroadcast to avoid circul… (#3864)
acdd832
fix(typings): enum values for ChannelType (#3861)
09e4912
fix(typings): remove duplicate VerificationLevels (#3862)
a6d3501
fix(typings): for intents (#3860)
8a2f893
feat: Intents bitfield (#3844)
b58813a
chore(*): update node version mention & use strict
There are 250 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴