This repository was archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Update discord.js to the latest version 🚀 #21
Open
greenkeeper
wants to merge
2
commits into
master
Choose a base branch
from
greenkeeper/discord.js-12.0.0
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Author
Update to this version instead 🚀 Release Notes for 12.0.1Fixes |
Author
|
Author
|
Author
|
Author
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.1to12.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#fetchMembersremoved in favour ofGuildMemberStore#fetch(^)Client#setGameand replaces it withClient#setActivitywhile also adding a Presence store and a Presence structure (c4df250)Guild#deleteEmojiin favour ofEmoji#delete(c93c4ad)Attachmentin favour ofMessageAttachment(methods stay the same) (d6b276b)MessageSearchOptions#sortBynow defaults totimestampinstead ofrecent(291af7e)EvaluatedPermissions(0a05761)MessageMentions#has(2f84d95)GuildMember#permissionsFortakes options object (61da73f)Collection.find()/findKey()(4122db0)Receiver#createStreamshould take options (4a1b55d)play(2b5fc77)StreamDispatcher#endrenamed toStreamDispatcher#finish(6567319)MessageEmbed's max length checks (9810bdb)Message#memberis now a getter (d93d628)Emojiclass, forEmoji, nowGuildEmojiandReactionEmoji(aa3407f)lastMessageproperty fromTextBasedChannel,UserandMemberto a getter (630009f)Collectionmethods and argument types and addCollection#partition(a732402)client,guild,_contentnon enumerable inMessageMentions(e8ab049)VoiceConnection#clientandVoiceWebsocket#clientas getters (18646b7)Collection#deleteAll(8e0ea9a)WebhookClient#tokenproperty non-enumerable (96a0655)Client#voice(c822563)createVoiceBroadcasttocreateBroadcast(9a092b6)Client#voiceConnections(70d4b44)Guild#voiceConnection=>Guild#voice#connection(dd44647)VoiceBroadcast.{dispatchers -> subscribers}(72dd872)Util#splitMessagealways returns an array (e645dd6)Guild#defaultRoletoRoleStore#everyone(2df4f22)passes(Discord drops duplicated audio packets now) (c715ed9)utilalias export (53a1f8f)MessageEmbedbuilder field manipulation in line with underlying array functionality (#3761) (b727f6c)disableEveryonerenamed todisableMentions(9cb306c)Additions
ClientOptions(87e5a45)Message#editto accept aMessageEmbedas options parameter (b7c55f0)afteroption when fetching users who reacted with an emoji (f40a5e9)MessageEmbed(63f6247)TextBasedChannel#bulkDeletenow 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#setUserLimitto reset when passing null (6254490)ReactionCollector#removeon all reaction removals (09315ae)Shard#readyproperty and related events (196cf76)GuildChannel#permissionsForto resolve permissions based off a role (b846cbd)Permissions#toArray(d5b0cf9)GuildMember#managable(36555c1)GuildChannel#fetchInvites(47bc0fc)Guild#manageable#getter (ef4bd92, e431ccd)Guild#mfaLevelproperty (b3ff7c7)GuildChannelStore#createoptions (c9c2d66)DiscordApiError#methodproperty (62605c4)Collection#tapmethod (7a3a4d1)Collection#sweepmethod (7a3a4d1)GuildEmoji#deletablegetter (fca6d3b)Shard#killmethod (fc81924)'Guild#defaultMessageNotifications(30c7d6d, 270a278, 95b2dd3)execArgvtoShardingManager(bfbb723, 6b3bfdd, 93f8c85, 938d87d)GuildEmoji#fetchAuthor(e0cbf0b, f963621)Message#urlgetter (ba32eec)PRIORITY_SPEAKER(b38f537)Message#cleanContentfunction toUtil(f3d7f7c)presenceUpdate(08eff66)Guild#fetchVanityCode()(f8057b0)WEBHOOKS_UPDATEevents (0401b8a)GuildEmbed(5787dee)UNKNOWN_WEBHOOKerror code (6be8172)ClientOptions#retryLimit(be4d6f9)TextBasedChannel#lastPinTimestampandTextBasedChannel#lastPinAt(e96a603)RateLimitPerUser(d4c0bb2)ColorResolvable(62e7e26)Emoji#createdAtandEmoji#createdTimestampgetters from GuildEmoji (71c04a3)ClientUser#setActivity(1ee417c)GuildChannel#rateLimitPerUser(8ec3b51)MessageEmbed#setTimestampto take a timestamp (1fe3608)ShardingManager(ab3a439)GuildChannel(d92ee2f)GuildChannel#createto accept a position (a8b47a7) (21ec031)Presence#clientStatus(75e264d)MessageEmbed#length(1db7899)HTTPErrorclass (dd8ba00)Partials(5c3f5d7) (6af0da1) (161f907)Webhook#urlgetter (c078682)ClientVoiceManager(70d4b44)ColorResolvable(520810d)Invite#deletablegetter (c4b7957)VoiceChannel#editable(870528e).voice(ce1e3d2)Streampermission (5154850)Guild#setRolePositionsmethod (8bc8ffe)Teamssupport (a22aabf)Guild#editmethod and addGuild#setBannermethod (adb0823)Util#escapeMarkdown(00c4098)for-await-ofloops (6d3c55b)Permissions#any(a6810e2)VoiceState#kickmethod (c86a615)Guild#partnered(6f83e71)Constants#verificationLevels(37ecf7b)@discordjs/collectionpackage (dad0cd8)VoiceState#streaming(a8f06f2)MessageAttachment#spoilerproperty (38d370f)MEMBER_MOVE,MEMBER_DISCONNECT,BOT_ADD,MESSAGE_BULK_DELETE,MESSAGE_PIN,MESSAGE_UNPIN,INTEGRATION_CREATE,INTEGRATION_UPDATE,INTEGRATION_DELETE) (1bcc0c2) (a69ebbe)Webhook#avatarURLmethod (330d5db)MessageFlags.FLAGS(SOURCE_MESSAGE_DELETED,URGENT) &User#system(4378283)Guild#systemChannelFlags(f578cce)GuildResolvableto include more structures (b4f00bf)Webhook#typeproperty andWebhook#created*getters (ea76a56)RichPresenceAssets#largeImageURL(bf31b28)PRIORITY_SPEAKINGbit (b5825c3)ImageURLOptions(8014ddc)Guild#fetchBanmethod (c779fe3)INVITE_CREATEandINVITE_DELETEevents (929ff9c)MessageReaction#removemethod andClient#messageReactionRemoveEmoji(030d263)14,15) (ef8acec)Guild#rulesChannelandGuild#publicUpdatesChannel(bea6da6)Collector#resetTimer(acf724e)GuildEmojiandInvitetoGuildResolvable(91a025c)articleembed type (31a3a86)Fixes
Util.splitMessagehandle more edge cases (e58ff64)Util.mergeDefaultandUtil.convertToBufferto be destructured (58d8528)GuildMember#addRolesandGuildMember#removeRolesreturn the member before the change (84153be)presenceUpdatefires twice, oldMember and newMember being the same both times (30dd3e0)MessageReaction#countalways being 1 (4e028d7)Guild#afk,Guild#systemChannelandGuild#iconnot removeable (b8a37b6)ClientUserGuildSettings(87fa74a)userUpdatenot triggering for initial setting (or removal) of avatars (f95ae4f)Guild#setChannelPositions(41c4999)GuildChannel#deletablenot allowing guild ID to be passed (3767b35)MessageRection#idfor default emojis (25ece18)VoiceConnection#setSpeakingnot returning the correct value (3871662)GuildAuditLogs(8fbae13)Client#login(69dcfa0)VoiceConnection.playFilefails to be called twice (6b249ba)GuildMember#joinedTimestamp(8d7e745)GuildChannel#editandRole#editwith a position being incorrect (37f5256)Client#loginnot using env.token (0277d1d)User#botbeing undefined (b255af0)TextBasedChannel#startTyping(94a4a06)Guild#addMember(21d09f3)toStringfor channels (abb93c9)Message#edit(59d5c5a)ReactionEmojisto succeed (0f7ce3f)MessageReaction#counttwice when reacting to a message (513dbf2)GuildEmojiRoleStore(d041cb2)MessageReaction(4e0e64d)voiceSessionIDafter changing server region (ef138fd)Role#edit(f985b6b)guildMemberRemove(b955a51)SreamDispatcher(e845758)ClientUserpresence with provided one inClientOptions(61ad947)Client#generateInvite(8d065fa)Webhook#editfrom always trying to useclient.channels(f293ddd, 077d41f)new Buffer(42ce4f8)discord.gg/invite/<code>invites inDataResolverregex (ddab809)GuildEmoji#deletablecheck guild permissions instead of channel ones (6cde6de)xsalsa20_poly1305_liteandxsalsa20_poly1305_suffix(43c92c1)Util#arraysEqualin favor of new array comparison to stop guild from losing features inGuild#equals(d02c303)GuildMember#joinedAtreturning an Invalid Date (46b19bb)VoiceChannel#deletablereturning true without required Connect permissions (0be0d25)Shard#sendandShardClientUtil#sendreturning false on large payloads (512af54, c5fea45)ReactionUserStore#fetchto be consistent withMessageStore#fetch(0970848)GuildMemberjoined properties as nullable and allow fetching a new member in that case (13bfceb, 5071477)StreamDispatcher#_step_writeCallbackbeing called multiple times (04618f5)seekoption in voice (1cdee7b)FFMPEG_ARGUMENTSwhen using seek (bf738b3)ShardingManager#respawnAlliteration (f67d682)MessageReactionto only delete cache if count and users are both empty (3a7a7d7)GuildEmoji#editand other issues (4ae58f6)Util.basenamebeing unreliable (0f63c50)VoiceChannel#membersshould be a Collection, not an Array (7968442)GuildChannel#setParentshould allow channel to be a Snowflake (8ac6648)ReactionCollector#removewhen reaction is removed by collected user (038b142)voiceStateUpdateonguildMemberRemove(183ba25)MessageEmbed#proxyURLproperty to video (7006f00)Commits
The new version differs by 1392 commits.
2338594Merge branch 'master' into stable3142d8cv12.0.0a133768v12.0.07d40c43chore: merge v12-dev master into stabled7c5bafchore: update discordjs/discord.js referencesf4b1b39feat: document intent error code messages (#3871)2d67fbbdocs: clarify which checks GuildMember#manageable does (#3870)544bb78refactor: make LimitedCollection an implementation detail (#3872)c7f4485docs(PartialRoleData): id is optional (#3866)713309efix(playinterface): lazy require VoiceBroadcast to avoid circul… (#3864)acdd832fix(typings): enum values for ChannelType (#3861)09e4912fix(typings): remove duplicate VerificationLevels (#3862)a6d3501fix(typings): for intents (#3860)8a2f893feat: Intents bitfield (#3844)b58813achore(*): update node version mention & use strictThere 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 🌴