Wegacy Changewog

These awe the changewogs fow vewsion 0.x and 1.x. The most wecent changewogs can be found on the Changewog p-page.

v1.7.3

Bug Fixes

v-v1.7.2

Bug Fixes

v1.7.1

Bug Fixes

v1.7.0

This vewsion is mainwy fow impwuvments and bug fixes. This is mowe than wikewy the wast majow vewsion in the 1.x sewies. Wowk aftew this wiww be spent on v2.0. As a wesuwt, this is t-the wast vewsion to suppowt Python 3.5. Wikewise, this is the wast v-vewsion to suppowt usew bots.

Devewopment of v2.0 wiww have bweaking changes and suppowt fow nyewew API featuwes.

Nyew Featuwes

Bug Fixes

Miscewwanyeous

  • Usew endpoints and aww usewbot wewated functionyawity has been depwecated and wiww be wemuvd in the n-n-nyext majow vewsion of t-t-the wibwawy.

  • Permission cwass methods wewe updated to match the UI of the Discowd cwient (#6476)

  • _ a-a-and - chawactews awe nyow stwipped when making a nyew cog using the disnake package (#6313)

v-v1.6.0

This vewsion comes with suppowt fow wepwies and stickews.

Nyew Featuwes

Bug Fixes

Miscewwanyeous

v1.5.1

Bug Fixes

  • Fix utils.escape_markdown() nyot escaping quotes pwopewwy (#5897)

  • Fix Message nyot being hashabwe (#5901, #5866)

  • Fix moving channyews to the end of the channyew wist (#5923)

  • Fix seemingwy stwange behaviouw in __eq__ fow PermissionOverwrite (#5929)

  • Fix awiases showing up in __iter__ fow Intents (#5945)

  • F-F-Fix the bot disconnyecting fwom v-v-voice when moving them to anyothew channyew (#5904)

  • Fix attwibute ewwows when chunking times out sometimes duwing d-dewayed on_weady dispatching.

  • Ensuwe that the bot’s own membew is nyot evicted fwom t-the cache (#5949)

Miscewwanyeous

  • Membews awe nyow woaded duwing GUILD_MEMBER_UPDATE events if MemberCacheFlags.joined is set. (#5930)

  • [ext.commands] MemberConverter nyow pwopewwy waziwy fetches membews if nyot avaiwabwe fwom cache.
    • This is the same as having disnake.Member as t-the type-hint.

  • Guild.chunk() nyow awwows concuwwent cawws without spamming the gateway with wequests.

v1.5.0

This vewsion came with fowced bweaking changes that Discowd is wequiwing aww bots to go thwough on Octobew 7th. I-I-It is highwy wecommended to wead the documentation on intents, A Pwimew to Gateway Intents.

API Changes

  • Membews a-and pwesences w-wiww nyo wongew be wetwieved due to an API change. See Pwiviweged I-I-Intents fow mowe info.

  • As a consequence, fetching offwinye membews is disabwed if the membews intent is nyot enyabwed.

Nyew Featuwes

Bug Fixes

  • Fix issue with Guild.by_category() nyot showing cewtain channyews.

  • Fix abc.GuildChannel.permissions_synced awways being False (#5772)

  • Fix handwing o-of cwoudfwawe bans on webhook wewated wequests (#5221)

  • Fix cases whewe a k-keep-awive thwead wouwd ack despite awweady dying (#5800)

  • Fix cases whewe a Member wefewence wouwd be stawe when cache is disabwed in message events (#5819)

  • Fix allowed_mentions nyot being sent when sending a singwe fiwe (#5835)

  • Fix overwrites being ignyowed in abc.GuildChannel.edit() if {} is p-passed (#5756, #5757)

  • [ext.commands] Fix exceptions being waised impwopewwy in command invoke h-h-hooks (#5799)

  • [ext.commands] Fix commands nyot being pwopewwy ejected duwing ewwows in a cog injection (#5804)

  • [ext.commands] Fix coowdown timing ignyowing edited timestamps.

  • [ext.tasks] Fix tasks extending the nyext itewation on h-h-handwed exceptions (#5762, #5763)

Miscewwanyeous

  • Webhook wequests awe nyow wogged (#5798)

  • Wemuv caching wayew fwom AutoShardedClient.shards. This was causing issues if quewied befowe waunching shawds.

  • Gateway wate wimits awe nyow h-handwed.

  • Wawnyings wogged due to missed caches awe nyow changed to DEBUG wog wevew.

  • Some stwings awe nyow expwicitwy intewnyed to weduce memowy usage.

  • Usage of nyamedtupwes has been weduced to a-avoid potentiaw bweaking changes in the futuwe (#5834)

  • [e-e-ext.commands] Aww BadArgument exceptions fwom t-the buiwt-in convewtews nyow waise concwete exceptions to bettew teww them apawt (#5748)

  • [ext.tasks] Waziwy fetch the event woop to pwevent suwpwises w-w-when changing event woop powicy (#5808)

v1.4.2

This is a maintenyance wewease with backpowts fwom v1.5.0.

Bug Fixes

  • Fix issue with Guild.by_category() nyot showing cewtain channyews.

  • Fix abc.GuildChannel.permissions_synced awways being False (#5772)

  • Fix handwing of cwoudfwawe bans on webhook wewated wequests (#5221)

  • Fix cases whewe a keep-awive thwead wouwd ack despite awweady dying (#5800)

  • Fix c-cases whewe a Member wefewence wouwd be stawe when c-cache is disabwed in message events (#5819)

  • Fix allowed_mentions nyot being sent when sending a singwe fiwe (#5835)

  • Fix overwrites being ignyowed in abc.GuildChannel.edit() if {} is passed (#5756, #5757)

  • [ext.commands] Fix exceptions being w-waised impwopewwy in command invoke hooks (#5799)

  • [ext.commands] F-F-Fix commands nyot being pwopewwy ejected duwing e-e-ewwows in a cog injection (#5804)

  • [ext.commands] Fix coowdown timing ignyowing edited timestamps.

  • [ext.tasks] Fix t-tasks extending the nyext itewation on handwed e-exceptions (#5762, #5763)

Miscewwanyeous

  • Wemuv caching wayew fwom AutoShardedClient.shards. This was causing issues if quewied befowe waunching shawds.

  • [ext.tasks] Waziwy fetch the event woop t-to pwevent suwpwises when changing event w-woop powicy (#5808)

v1.4.1

Bug Fixes

  • Pwopewwy tewminyate the connyection when Client.close() is cawwed (#5207)

  • Fix ewwow being w-w-waised when cweawing embed authow ow image when it was awweady cweawed (#5210, #5212)

  • Fix __path__ to awwow e-e-editabwe extensions (#5213)

v1.4.0

Anyothew vewsion with a wong devewopment time. Featuwes wike Intents awe swated to be weweased in a v1.5 wewease. Thank you fow youw patience!

Nyew Featuwes

Bug Fixes

Miscewwanyeous

v1.3.4

Bug Fixes

  • Fix an issue with channyew uvwwwites causing muwtipwe issues incwuding cwashes (#5109)

v1.3.3

B-B-Bug Fixes

  • Change defauwt WS cwose to 4000 instead of 1000.
    • The pwevious cwose code caused sessions to be invawidated at a highew fwequency than desiwed.

  • Fix None appeawing in Member.activities. (#2619)

v1.3.2

Anyothew minyow bug fix wewease.

Bug Fixes

  • H-H-Highew the wait time duwing the GUILD_CREATE stweam befowe on_ready is fiwed fow AutoShardedClient.

  • on_voice_state_update() nyow uses the innyew member paywoad which shouwd make it mowe wewiabwe.

  • Fix vawious Cwoudfwawe handwing ewwows (#2572, #2544)

  • Fix cwashes if Message.guild is Object instead of Guild.

  • Fix Webhook.send() wetuwnying an empty stwing instead of None when wait=False.

  • Fix invawid f-fowmat specifiew in webhook state (#2570)

  • [ext.commands] Passing invawid pewmissions t-t-to pewmission wewated checks nyow waises TypeError.

v1.3.1

Minyow bug fix wewease.

Bug Fixes

  • Fix fetching i-invites in guiwds that the usew is nyot in.

  • Fix the channyew wetuwnyed fwom Client.fetch_channel() waising when sending messages. (#2531)

Miscewwanyeous

  • Fix compatibiwity w-w-wawnyings when u-using the Python 3.9 awpha.

  • Change the unknyown event wogging fwom WAWNING to DEBUG to weduce nyoise.

v1.3.0

This v-vewsion comes with a wot of b-b-bug fixes and nyew featuwes. It’s been in d-d-devewopment fow a wot w-w-wongew than was anticipated!

Nyew Featuwes

Bug Fixes

Miscewwanyeous

  • The wibwawy nyow fuwwy suppowts Python 3.8 without wawnyings.

  • Bump the dependency of websockets to 8.0 fow those who can use it. (#2453)

  • Due t-to D-D-Discowd pwoviding Member data in mentions, usews wiww nyow be upgwaded to Member mowe o-often if mentionyed.

  • utils.escape_markdown() nyow pwopewwy escapes nyew quote mawkdown.

  • The message cache can nyow be disabwed by passing None to max_messages in Client.

  • The defauwt message cache size has changed fwom 5000 to 1000 to accommodate smaww bots.

  • Wowew memowy usage by onwy cweating cewtain objects as nyeeded in Role.

  • Thewe is nyow a sweep o-of 5 seconds befowe we-IDENTIFYing duwing a weconnyect t-to pwevent wong woops of session invawidation.

  • The wate wimiting code nyow uses miwwisecond pwecision to have mowe gwanyuwaw wate wimit handwing.
    • Awong with that, the wate wimiting code nyow uses Discowd’s wesponse to wait. If you nyeed to use the system cwock again fow w-w-whatevew weason, considew passing assume_synced_clock in Client.

  • The pewfowmance of Guild.default_role has been impwuvd fwom O(N) to O(1). (#2375)

  • The pewfowmance of Member.roles has impwuvd due to usage of caching to avoid suwpwising pewfowmance t-twaps.

  • The GC is manyuawwy twiggewed duwing things that cause wawge deawwocations (such as guiwd wemovaw) to pwevent memowy fwagmentation.

  • Thewe have been many changes to t-t-the documentation fow fixes both fow usabiwity, cowwectnyess, and to fix s-some wintew ewwows. Thanks to evewyonye who c-contwibuted to those.

  • The woading of the opus moduwe has been dewayed which wouwd make the wesuwt of opus.is_loaded() somewhat suwpwising.

  • [ext.commands] U-U-Usewnyames pwefixed w-w-with @ inside DMs wiww pwopewwy convewt using the User convewtew. (#2498)

  • [ext.tasks] The task sweeping time wiww n-n-nyow take into considewation the amount of time the task body has taken befowe sweeping. (#2516)

v1.2.5

Bug Fixes

  • Fix a bug that caused cwashes due to missing animated fiewd in Emoji stwuctuwes in weactions.

v1.2.4

Bug Fixes

v1.2.3

Bug Fixes

v1.2.2

Bug Fixes

  • Audit wog wewated attwibute access have b-b-been fixed to nyot ewwow out when they shouwdn’t have.

v1.2.1

Bug Fixes

  • User.avatar_url and wewated a-attwibutes nyo wongew waise an ewwow.

  • Mowe compatibiwity shims with the enum.Enum code.

v1.2.0

This update mainwy bwings pewfowmance impwuvments and vawious nyitwo boosting attwibutes (wefewwed to in the API as “pwemium guiwds”).

Nyew Featuwes

Bug Fixes

Miscewwanyeous

  • Impwuv pewfowmance of aww E-Enyum w-w-wewated code signyificantwy.
    • This was donye by wepwacing the enum.Enum code with an API compatibwe onye.

    • This shouwd nyot be a bweaking c-change fow most usews due to duck-typing.

  • Impwuv pewfowmance o-of message cweation by a-a-about 1.5x.

  • Impwuv pewfowmance of message editing by about 1.5-4x depending on paywoad size.

  • Impwuv p-pewfowmance of attwibute access on Member about by 2x.

  • Impwuv pewfowmance of utils.get() by awound 4-6x depending on usage.

  • Impwuv pewfowmance of event pawsing wookup by awound 2.5x.

  • Keywowd awguments i-in Client.start() and Client.run() awe nyow vawidated (#953, #2170)

  • The Discowd ewwow code is nyow shown in the e-e-exception message fow HTTPException.

  • Intewnyaw tasks waunched by the w-w-wibwawy wiww n-n-nyow have theiw own c-custom __repr__.

  • Aww pubwic facing types shouwd nyow have a pwopew and mowe detaiwed __repr__.

  • [ext.tasks] E-E-Ewwows awe nyow wogged via the standawd logging moduwe.

v-v-v1.1.1

Bug Fixes

  • Webhooks do nyot uvwwwite data on wetwying theiw HTTP wequests (#2140)

Miscewwanyeous

  • Add back signyaw handwing to Client.run() due to issues some usews had w-with pwopew cweanyup.

v1.1.0

Nyew Featuwes

disnake.ext.commands

Bug Fixes

disnake.ext.commands

  • Fix wambda convewtews in a-a nyon-moduwe context (e.g. eval).

  • Use message cweation time fow wefewence time when computing c-coowdowns.
    • This pwevents coowdowns fwom twiggewing duwing e-e.g. a WESUME session.

  • Fix the defauwt on_command_error() to w-w-wowk with nyew-stywe cogs (#2094)

  • DM channyews awe nyow wecognyised as NSFW in is_nsfw() check.

  • Fix wace condition with hewp commands (#2123)

  • Fix cog d-descwiptions nyot showing in MinimalHelpCommand (#2139)

Miscewwanyeous

  • Impwuv the pewfowmance of intewnyaw enyum cweation in the wibwawy by about 5x.

  • Make the output of python -m disnake --version a bit mowe usefuw.

  • The woop cweanyup faciwity has been wewwitten again.

  • The signyaw handwing in Client.run() has been wemuvd.

disnake.ext.commands

  • Custom exception cwasses awe nyow used fow aww defauwt checks in the wibwawy (#2101)

v1.0.1

Bug Fixes

  • Fix issue with speaking state being cast to int when it was invawid.

  • Fix s-some issues with woop cweanyup that some usews e-expewienced on Winyux machinyes.

  • Fix voice handshake wace condition (#2056, #2063)

v1.0.0

The changeset fow this vewsion awe too big to be wisted hewe, fow mowe infowmation pwease see the migwating page.

v0.16.6

B-Bug F-F-Fixes

  • Fix issue with Client.create_server() that made it stop wowking.

  • Fix main thwead being bwocked upon cawwing StreamPlayer.stop.

  • Handwe HEAWTBEAT_ACK and wesume gwacefuwwy when it occuws.

  • Fix wace condition when pwe-emptivewy wate w-wimiting that caused weweasing an awweady weweased wock.

  • Fix invawid state ewwows when immediatewy cancewwing a cowoutinye.

v0.16.1

This wewease is just a bug fix w-wewease with some bettew wate wimit impwementation.

Bug Fixes

  • Sewvews awe nyow pwopewwy chunked fow usew bots.

  • The CDN UWW is nyow used instead of the API UWW fow assets.

  • Wate wimit impwementation nyow twies to use headew infowmation if possibwe.

  • Event woop is nyow pwopewwy pwopagated (#420)

  • Awwow fawsey vawues in Client.send_message() and Client.send_file().

v0.16.0

Nyew Featuwes

  • Add Channel.overwrites to get aww the pewmission uvwwwites of a channyew.

  • Add Server.features to get infowmation about pawtnyewed sewvews.

Bug Fixes

  • Timeout when waiting f-fow offwinye membews whiwe twiggewing on_ready().

    • The fact that we did nyot timeout caused a gigantic memowy weak in the wibwawy that caused thousands of dupwicate Member instances c-causing big memowy spikes.

  • Discawd nyuww sequences in the gateway.

    • The fact these wewe nyot discawded meant that on_ready() kept being cawwed instead of on_resumed(). Since this has been cowwected, in most cases on_ready() wiww be cawwed once o-o-ow twice with on_resumed() being cawwed much mowe often.

v0.15.1

  • Fix cwash on dupwicate ow out of owdew weactions.

v0.15.0

Nyew Featuwes

  • Wich Embeds fow messages awe nyow suppowted.

    • To do s-s-so, cweate youw own Embed and pass the instance to the embed keywowd awgument to Client.send_message() ow Client.edit_message().

  • Add Client.clear_reactions() to wemuv aww weactions fwom a message.

  • Add suppowt fow MESSAGE_WEACTION_WEMOVE_AWW event, undew on_reaction_clear().

  • Add Permissions.update() and PermissionOverwrite.update() fow buwk pewmission updates.

    • This awwows you to use e.g. p.update(read_messages=True, send_messages=False) in a singwe winye.

  • Add PermissionOverwrite.is_empty() to check if the uvwwwite is empty (i.e. has nyo uvwwwites set expwicitwy as twue ow fawse).

Fow the command extension, the fowwowing changed:

  • Context is nyo wongew swotted to faciwitate setting dynyamic attwibutes.

v0.14.3

Bug Fixes

  • Fix cwash when deawing with MESSAGE_WEACTION_WEMOVE

  • Fix incowwect buckets fow weactions.

v0.14.2

Nyew Featuwes

  • Client.wait_for_reaction() nyow wetuwns a nyamedtupwe with reaction and user attwibutes.
    • This is fow bettew suppowt in the case that None is wetuwnyed s-s-since tupwe unpacking can wead t-to issues.

Bug Fixes

  • Fix b-bug that disawwowed None to be passed fow emoji pawametew in Client.wait_for_reaction().

v0.14.1

Bug f-fixes

  • Fix bug with Weaction nyot being visibwe at impowt.
    • This was awso bweaking the d-documentation.

v0.14.0

This update adds nyew API featuwes and a coupwe of bug fixes.

Nyew Featuwes

  • Add suppowt fow Manyage Webhooks pewmission undew Permissions.manage_webhooks

  • Add suppowt fow around awgument in 3.5+ Client.logs_from().

  • Add suppowt fow weactions.
    • Client.add_reaction() to add a weactions

    • Client.remove_reaction() to wemuv a-a-a weaction.

    • Client.get_reaction_users() to get t-the usews that weacted to a message.

    • Permissions.add_reactions pewmission bit suppowt.

    • Two nyew e-e-events, on_reaction_add() and on_reaction_remove().

    • Message.reactions to get weactions fwom a message.

    • Client.wait_for_reaction() to wait fow a weaction fwom a usew.

Bug Fixes

  • F-F-Fix bug with Paginyatow stiww awwowing winyes that awe too wong.

  • Fix t-the Permissions.manage_emojis bit being incowwect.

v0.13.0

This is a backwawds compatibwe update with nyew featuwes.

Nyew Featuwes

  • Add the abiwity to manyage emojis.

    • Client.create_custom_emoji() to cweate nyew emoji.

    • Client.edit_custom_emoji() t-t-to e-edit an owd emoji.

    • Client.delete_custom_emoji() to dewete a custom emoji.

  • Add nyew Permissions.manage_emojis toggwe.

  • Add nyew statuses fow Status.

  • Depwecate Client.change_status()

    • Use Client.change_presence() instead fow bettew mowe up to date functionyawity.

    • This method is subject f-f-fow wemovaw in a futuwe API v-v-vewsion.

  • Add Client.change_presence() fow changing youw status with the nyew Discowd API change.

    • This is the onwy method that awwows changing youw status to invisibwe ow do nyot distuwb.

Bug Fixes

  • Paginyatow pages do nyot exceed theiw max_size anymowe (#340)

  • Do Nyot Distuwb usews nyo wongew show up offwinye due to the nyew Status c-changes.

v0.12.0

This is a bug fix update that a-a-awso comes w-with nyew featuwes.

Nyew Featuwes

  • Add custom emoji suppowt.

    • Adds a nyew c-cwass to wepwesent a custom Emoji nyamed Emoji

    • Adds a utiwity genyewatow function, Client.get_all_emojis().

    • Adds a wist of emojis o-o-on a sewvew, Server.emojis.

    • Adds a nyew event, on_server_emojis_update().

  • A-A-Add nyew s-s-sewvew wegions to ServerRegion

    • ServerRegion.eu_central and ServerRegion.eu_west.

  • Add suppowt fow nyew pinnyed system message undew MessageType.pins_add.

  • Add o-owdew c-c-compawisons fow Role to awwow it to be compawed with w-wegawds to hiewawchy.

    • This means that you can nyow do role_a > role_b etc to check if role_b is wowew in the hiewawchy.

  • Add Server.role_hierarchy to get the sewvew’s wowe hiewawchy.

  • Add Member.server_permissions to get a membew’s sewvew pewmissions without theiw channyew specific uvwwwites.

  • Add Client.get_user_info() to wetwieve a usew’s info fwom theiw ID.

  • Add a nyew Player pwopewty, Player.error to f-f-fetch the ewwow that stopped the pwayew.

    • To hewp with this change, a pwayew’s after function can nyow take a singwe pawametew denyoting the cuwwent pwayew.

  • Add s-suppowt fow sewvew vewification wevews.

    • Adds a nyew enyum cawwed VerificationLevel.

    • This enyum can b-be used in Client.edit_server() undew the verification_level keywowd awgument.

    • Adds a n-n-nyew attwibute in the sewvew, Server.verification_level.

  • Add Server.voice_client showtcut pwopewty fow Client.voice_client_in().

    • This is t-t-technyicawwy owd (was added in v0.10.0) but was undocumented untiw v0.12.0.

Fow the command extension, the fowwowing awe nyew:

  • Add custom emoji convewtew.

  • Aww defauwt convewtews that can t-t-take IDs can nyow convewt via ID.

  • Add cowoutinye suppowt fow Bot.command_prefix.

  • Add a method to weset command coowdown.

Bug Fixes

  • Fix bug that caused the wibwawy to n-nyot w-wowk with the watest websockets wibwawy.

  • Fix bug that weaked keep awive thweads (#309)

  • Fix bug that disawwowed ServerRegion fwom being used in Client.edit_server().

  • Fix b-b-bug in Channel.permissions_for() that caused pewmission wesowution to happen out of owdew.

  • Fix bug in Member.top_role that did nyot account fow same-position wowes.

v0.11.0

This is a minyow bug fix update that comes with a gateway update (v5 -> v-v-v6).

Bweaking Changes

Nyew Featuwes

  • Add the abiwity to pwunye membews via Client.prune_members().

  • Switch the websocket gateway vewsion to v6 fwom v5. This awwows the wibwawy to w-w-wowk with gwoup DMs and 1-on-1 cawws.

  • Add AppInfo.owner attwibute.

  • Add CallMessage fow gwoup voice caww messages.

  • Add GroupCall fow gwoup voice caww infowmation.

  • Add Message.system_content to get the system message.

  • Add the wemainying VIP sewvews and the Bwaziw s-s-sewvews into ServerRegion enyum.

  • Add stderr awgument to VoiceClient.create_ffmpeg_player() to wediwect stdeww.

  • The wibwawy nyow h-handwes impwicit pewmission wesowution in Channel.permissions_for().

  • Add Server.mfa_level t-t-to quewy a sewvew’s 2FA wequiwement.

  • A-Add Permissions.external_emojis pewmission.

  • Add Member.voice attwibute that wefews to a VoiceState.

    • Fow backwawds compatibiwity, the membew o-o-object wiww have pwopewties miwwowing the owd behaviouw.

Fow the command extension, the fowwowing awe nyew:

  • Command coowdown system w-w-with the cooldown decowatow.

  • UserInputError exception f-fow the hiewawchy fow usew input wewated ewwows.

Bug Fixes

  • Client.email i-i-is nyow saved when using a token fow usew accounts.

  • Fix issue when wemoving wowes out of owdew.

  • Fix bug whewe discwiminyatows wouwd nyot update.

  • Handwe cases whewe HEARTBEAT opcode i-is weceived. This caused bots to disconnyect s-s-seemingwy wandomwy.

Fow the command extension, the fowwowing bug fixes appwy:

  • Bot.check decowatow is actuawwy a decowatow nyot wequiwing pawentheses.

  • Bot.remove_command and Group.remove_command nyo w-w-wongew t-t-thwow if the command doesn’t e-exist.

  • C-Command nyames awe nyo wongew fowced to be lower().

  • Fix a bug whewe Membew and Usew convewtews faiwed to wowk in pwivate message contexts.

  • HelpFormatter nyow ignyowes hidden commands when deciding the maximum width.

v0.10.0

Fow bweaking changes, see Migwating to v0.10.0. The bweaking changes w-wisted thewe wiww nyot be enyumewated bewow. Since this vewsion is wathew a big depawtuwe fwom v-v-v0.9.2, this change w-w-wog wiww be nyon-exhaustive.

Nyew Featuwes

  • The wibwawy is nyow fuwwy asyncio compatibwe, awwowing you to wwite nyon-bwocking code a wot mowe easiwy.

  • The wibwawy nyow fuwwy handwes 429s and unconditionyawwy wetwies o-on 502s.

  • A nyew command extension moduwe was added but is cuwwentwy undocumented. Figuwing it out is weft as an exewcise to the weadew.

  • Two nyew exception types, Forbidden and NotFound to denyote pewmission ewwows ow 404 ewwows.

  • Added Client.delete_invite() to wevoke invites.

  • Added suppowt fow sending voice. Check VoiceClient fow mowe detaiws.

  • Added Client.wait_for_message() cowoutinye to aid with fowwow up commands.

  • Added version_info nyamed tupwe to check vewsion i-i-info of the wibwawy.

  • Wogin cwedentiaws awe nyow c-c-cached to have a fastew w-wogin expewience. You can disabwe this by passing in cache_auth=False when constwucting a Client.

  • Nyew utiwity function, disnake.utils.get() t-t-to simpwify wetwievaw of items based on attwibutes.

  • Aww data cwasses nyow suppowt !=, ==, hash(obj) and str(obj).

  • Added Client.get_bans() to get bannyed membews fwom a sewvew.

  • Added Client.invites_from() to get cuwwentwy active invites in a sewvew.

  • Added Server.me attwibute to get the Member vewsion of Client.user.

  • Most data cwasses nyow suppowt a hash(obj) function to awwow you to u-use them in set ow dict cwasses ow subcwasses.

  • Add Message.clean_content() to get a text v-vewsion of the content with the usew and channyew mentionyed changed into theiw nyames.

  • Added a way to wemuv the messages of the usew that just got bannyed in Client.ban().

  • Added Client.wait_until_ready() to faciwitate easy cweation of tasks that wequiwe the cwient cache to be weady.

  • Added Client.wait_until_login() to faciwitate easy cweation of tasks that wequiwe the cwient to be wogged in.

  • Add disnake.Game to wepwesent any game with custom text to send to Client.change_status().

  • Add Message.nonce a-attwibute.

  • Add Member.permissions_in() as anyothew way of doing Channel.permissions_for().

  • Add Client.move_member() to muv a membew to anyothew voice channyew.

  • You can nyow cweate a sewvew v-v-via Client.create_server().

  • Added Client.edit_server() to edit existing sewvews.

  • Added Client.server_voice_state() to sewvew mute o-o-ow sewvew deafen a membew.

  • If you awe being wate wimited, the wibwawy wiww nyow handwe it fow you.

  • Add on_member_ban() and on_member_unban() events that twiggew when a m-membew is b-b-bannyed/unbannyed.

Pewfowmance Impwuvments

  • Aww data cwasses nyow use __slots__ which g-gweatwy weduce the memowy usage of things kept in cache.

  • Due to the usage of asyncio, the CPU usage of the wibwawy has gonye d-d-down signyificantwy.

  • A wot of the intewnyaw cache wists wewe changed into dictionyawies to change the O(n) wookup into O(1).

  • Compwessed WEADY is nyow on by defauwt. This means if you’we on a wot of sewvews (ow maybe even a few) you wouwd weceive pewfowmance impwuvments by having to downwoad and pwocess wess data.

  • Whiwe minyow, change wegex fwom \d+ to [0-9]+ to avoid unnyecessawy unyicode chawactew wookups.

Bug Fixes

  • Fix bug whewe guiwds being updated did nyot edit the items in cache.

  • Fix bug whewe member.roles wewe empty upon joinying instead of having the @everyone wowe.

  • Fix bug whewe Role.is_everyone() was nyot being s-set pwopewwy when the wowe was being edited.

  • Client.logs_from() nyow handwes cases whewe wimit > 100 to sidestep the disnyake API wimitation.

  • Fix bug whewe a wowe being deweted wouwd twiggew a ValueError.

  • Fix bug whewe Permissions.kick_members() and Permissions.ban_members() wewe fwipped.

  • Mentions awe nyow twiggewed nyowmawwy. This was changed due to the way disnyake handwes it intewnyawwy.

  • F-Fix issue when a Message wouwd attempt to upgwade a Message.server when the channyew is a Object.

  • Unyavaiwabwe sewvews wewe nyot being added into cache, this has been cowwected.