Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

[Snyk] Upgrade discord.js from 11.5.1 to 11.6.1 #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snyk-bot
Copy link
Contributor

Snyk has created this PR to upgrade discord.js from 11.5.1 to 11.6.1.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
  • The recommended version is 2 versions ahead of your current version.
  • The recommended version was released 22 days ago, on 2020-02-29.
Release notes
Package name: discord.js
  • 11.6.1 - 2020-02-29

    Overview

    11.6.1 is being released to update version references in the documentation; No code changes are included.

    Deprecations

    • All user account-only methods have been deprecated (95a2d25)
    • ClientUser#setGame in favor of ClientUser#setActivity (cd06684)
    • Collection#exists in favor of Collection#some (09ddbcb)
    • Collection#find and Collection#findKey's 'prop', 'val' overload is deprecated, pass a function instead (09ddbcb)
    • Collection#filterArray, convert to an array and filter, or the other way around instead. (09ddbcb)
    • Collection#findAll, filter and then convert to an array, or the other way around. In addition, the 'prop', 'val' overload is also deprecated - pass a function instead (09ddbcb)
    • Guild#createChannel when specifying options without using an options object (7ea88ad)
    • Guild#defaultChannel, there will be no fallback/alternative (407500b)
    • Guild#deleteEmoji in favor of Emoji#delete (c355236)
    • The old method signature of GuildChannel#clone in favor of using an options object (ab866d6)
    • Permissions.flags: READ_MESSAGES in favor of VIEW_CHANNEL (1fe201a)
    • Permissions#allowed and Permissions#denied in favor of Permissions#allow and Permissions#deny respectively (58ba2c7)
    • PermissionOverwrites#allowed and PermissionOverwrites#denied in favor of PermissionOverwrites#allow and PermissionOverwrites#deny (db492e6)
    • The peer dependency @discordjs/uws is now deprecated and will be removed with the next major release (5556b05)
    • The peer dependency node-opus is now deprecated, use @discordjs/opus instead (6ab4649)
  • 11.6.0 - 2020-02-29

    Overview

    11.6.0 is being released to backport new features from 12.0.0-dev.

    Deprecations

    • All user account-only methods have been deprecated (95a2d25)
    • ClientUser#setGame in favor of ClientUser#setActivity (cd06684)
    • Collection#exists in favor of Collection#some (09ddbcb)
    • Collection#find and Collection#findKey's 'prop', 'val' overload is deprecated, pass a function instead (09ddbcb)
    • Collection#filterArray, convert to an array and filter, or the other way around instead. (09ddbcb)
    • Collection#findAll, filter and then convert to an array, or the other way around. In addition, the 'prop', 'val' overload is also deprecated - pass a function instead (09ddbcb)
    • Guild#createChannel when specifying options without using an options object (7ea88ad)
    • Guild#defaultChannel, there will be no fallback/alternative (407500b)
    • Guild#deleteEmoji in favor of Emoji#delete (c355236)
    • The old method signature of GuildChannel#clone in favor of using an options object (ab866d6)
    • Permissions.flags: READ_MESSAGES in favor of VIEW_CHANNEL (1fe201a)
    • Permissions#allowed and Permissions#denied in favor of Permissions#allow and Permissions#deny respectively (58ba2c7)
    • PermissionOverwrites#allowed and PermissionOverwrites#denied in favor of PermissionOverwrites#allow and PermissionOverwrites#deny (db492e6)
    • The peer dependency @discordjs/uws is now deprecated and will be removed with the next major release (5556b05)
    • The peer dependency node-opus is now deprecated, use @discordjs/opus instead (6ab4649)

    Additions

    • Add support for @discordjs/opus (6ab4649)
    • Add BitField class (46e8bc4)
    • Add Client#inviteCreate and Client#inviteDelete events (40afbc1)
    • Add Client#messageReactionRemoveEmoji event and MessageReaction#removeAll (ab7f9e8)
    • Add idle options to Collectors (ccd6043)
    • Add Emoji#delete (c355236)
    • Add Game#emoji, createdAt, and createdTimestamp (17b8b23)
    • Add Guild#rulesChannelID, Guild#rulesChannel, Guild#publicUpdatesChannelID, and Guild#publicUpdatesChannel (b0aed05)
    • Add Guild#setBanner and banner to Guild#edit (01826ae)
    • Document ChannelData#reason when creating a channel (7011c51)
    • Add the following properties, getters, and methods to Guild (e6a378b)
      • banner and bannerURL
      • description
      • embedChannelID and embedChannel
      • maximumMembers
      • maximumPresences
      • widgetEnabled
      • widgetChannelID and widgetChannel
      • vanityURLCode
      • fetch
    • Add Integrations, Guild#fetchIntegrations, and Guild#createIntegration (c955fd0)
    • Handle new audit log types (Guild#fetchAuditLogs) (dbdb49e)
      • MEMBER_MOVE, MEMBER_DISCONNECT
      • BOT_ADD
      • MESSAGE_BULK_DELETE, MESSAGE_PIN, MESSAGE_UNPIN
      • INTEGRATION_CREATE, INTEGRATION_UPDATE, INTEGRATION_DELETE
    • Add support for guild boosting (b892436)
      • Emoji#available
      • Guild#premiumTier
      • Guild#premiumSubscriptionCount
      • GuildMember#premiumSinceTimestamp (also premiumSince getter)
      • Four new related message types:
        • USER_PREMIUM_GUILD_SUBSCRIPTION
        • USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1
        • USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2
        • USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3
    • Add SystemChannelFlags, Guild#systemChannelFlags, Guild#setSystemChannelFlags, and systemChannelFlags to Guild#edit's options (330c410)
    • Add GuildChannel#permissionsLocked getter (2610bf5)
    • Add support for clone options when cloning a channel using GuildChannel#clone (ab866d6)
    • Add GuildMember#selfStream (96037e1, 36c0496)
    • Cache Message#member and MessageMentions#members as they come from Discord (0f49d67)
    • Add the following (7e9c995)
      • Message#flags
      • Message#reference
      • flags to Message#edit
      • Message#suppressEmbeds
      • MessageMentions#crosspostedChannels
      • CHANNEL_FOLLOW_ADD to MessageType
      • User#system
    • Add GUILD_DISCOVERY_DISQUALIFIED and GUILD_DISCOVERY_REQUALIFIED to MessageTypes (b0d0b81)
    • Add MessageAttachment#spoiler (4ca1864)
    • Add the following properties to MessageReaction (88b675d)
      • animated
      • client
      • createdTimestamp
      • createdAt
      • url
    • Add RichEmbed#spliceFields and RichEmbed.normalizeField (6eaf63f)
    • Add RichEmbed#toJSON returning an api-compatible object (97457e1)
    • Add Permissions#any (367c800)
    • Add STREAM Permission (dcee09c)
    • Document Presence#client (f6d1db6)
    • Add Presence#activities (17b8b23)
    • Add ability specify a channel and reason when editing a through Webhook#edit (fbe9bc4)
    • Add the following properties to Webhook (30adb37)
      • avatarURL
      • type
      • createdTimestamp
      • createdAt
      • url

    Fixes

    • Only use Client#setMaxListeners if the max listener count is not 0 (903f6ca)
    • Return a user when resolving from guild in ClientDataResolver#resolveUser (464ef25)
    • Always run postCheck when an event was received to allow stopping of the collector using the max option (099a1a4)
    • Allow Guild#fetchMember to be used with a Snowflake (6f49aad)
    • Set the integer constant instead of 'text' when creating a channel as default (505df2e)
    • Default to an object with id property if the GuildAuditLogsEntry target was deleted (43c0a79)
    • Return GuildChannel in GuildChannel#setPosition instead of Guild (1121b2f)
    • Mark messages of deleted channels as deleted (d1d0d75)
    • Filter out duplicated roles when editing the roles of a GuildMember (f91ad70)
    • Allow owner to override GuildMember#manageable (364914f)
    • Do not mutate input arrays in Util.arraysEqual (fixing Guild#equals mutating Guild#features and the old member's roles in guildMemberUpdate) (8ddd061)
    • Return the correct link for twitch previews as part of RichPresenceAssets (a505a55)
    • Internally disconnect and cleanup VoiceConnection when being forcibly disconnected (cbabc16)
    • Fix speaking events and voice receive (fbcd363)
    • Remove opus decoder from map in stoppedSpeaking in VoiceReceiver (91600a6)
    • No longer use deprecated _trace in Ready and Resumed WebSocket handlers (684bb1b)
    • Use for..of with Object.keys instead of for..in everywhere (6d7e1e4)
  • 11.5.1 - 2019-05-29

    Overview

    11.5.1 is being released to fix bugs from 11.5.0, most notably not being able to modify the nickname of the current user.

    Deprecations

    • All user account-only methods have been deprecated (95a2d25)
    • ClientUser#setGame in favor of ClientUser#setActivity (cd06684)
    • Collection#exists in favor of Collection#some (09ddbcb)
    • Collection#find and Collection#findKey's 'prop', 'val' overload is deprecated, pass a function instead (09ddbcb)
    • Collection#filterArray, convert to an array and filter, or the other way around instead. (09ddbcb)
    • Collection#findAll, filter and then convert to an array, or the other way around. In addition, the 'prop', 'val' overload is also deprecated - pass a function instead (09ddbcb)
    • Guild#createChannel when specifying options without using an options object (7ea88ad)
    • Guild#defaultChannel, there will be no fallback/alternative (407500b)
    • Permissions.flags: READ_MESSAGES in favor of VIEW_CHANNEL (1fe201a)
    • Permissions#allowed and Permissions#denied in favor of Permissions#allow and Permissions#deny respectively (58ba2c7)
    • PermissionOverwrites#allowed and PermissionOverwrites#denied in favor of PermissionOverwrites#allow and PermissionOverwrites#deny (db492e6)

    Fixes

    • Do not create channel key in GuildMember#edit (06b72ee)
    • Message#pinnable should return false for non DEFAULT messages (8c213e9)
    • ClientUser#mfaEnabled is not nullable (db492e6)
from discord.js GitHub release notes

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant