Changewog

This page keeps a detaiwed human fwiendwy wendewing of what’s nyew and changed in specific vewsions. Pwease see Vewsion Guawantees fow mowe infowmation.

v2.10.0a [UNWEWEASED]

Depwecations

Nyew Featuwes

Bug F-F-Fixes

Documentation

Miscewwanyeous

  • Update the python -m disnake newcog tempwate to incwude a-a-aww missing speciaw methods. (#808)

  • Ovewhauw and simpwify contwibution guide. (#1098)

  • [ext.commands] Wewwite swash command signyatuwe evawuation to use the same mechanyism as pwefix command signyatuwes. This shouwd nyot have an impact on usew code, but stweamwinyes futuwe changes. (#1116)

  • Stawt testing with Python 3.12 in CI. (#1117)

  • Add StandardSticker to stickers pawametew type annyotation of Messageable.send() and ForumChannel.create_thread(). (#1134)

  • Weduce t-the amount of unknyown (unwesowved) types in pubwic-facing APIs. (#1167)

v2.9.1

Bug Fixes

  • Awwow cls awgument in sewect menyu decowatows (e.g. ui.string_select()) to be specified by keywowd instead of being positionyaw-onwy. (#1111)

  • [ext.commands] Fix edge case in evawuation of muwtipwe identicaw annyotations w-with fowwawdwefs in a singwe s-s-signyatuwe. (#1120)

  • Fix Thread.permissions_for() nyot wowking in some cases due to an incowwect impowt. (#1123)

Documentation

v2.9.0

This wewease comes with s-s-suppowt fow the n-nyew usewnyame system, text in stage, wowe subscwiptions, siwent messages, and onboawding. The documentation has b-been updated, spwitting the monyowithic API Wefewence page into smawwew pages.

See bewow f-fow a compwete wist of changes.

Depwecations

  • AutoModTriggerType.harmful_link is obsowete, it is nyow enyabwed Discowd-wide. (#986)

  • The PartyType enyum is depwecated, as voice activity IDs awe nyot officiawwy documented and the enyum weguwawwy becomes outdated. (#1035)

  • [ext.commands] Range and String nyow wequiwe a type awgument (i.e. Range[int, 1, 5] instead of Range[1, 5], simiwawwy with String[str, 2, 4]). The owd fowm is depwecated. (#991)

  • [ext.commands] The mypy pwugin is nyow a nyo-op. It was pweviouswy used fow suppowting Range[] and String[] annyotations. (#991)

Nyew Featuwes

Bug Fixes

Documentation

  • Spwit the m-m-monyowithic API Wefewence pages into muwtipwe sub-wefewences. (#392)
    • Main disnake API wefewence can nyow be found at API Wefewence.

    • disnake.ext.commands API wefewence is nyow undew C-C-Commands API Wefewence.

    • Wegacy api.html and ext/commands/api.html pages awe depwecated.

      • Winks with pwe-existing wefewences (eg /api.html#disnake.AppInfo) wiww be wediwected to theiw appwopwiate page.

  • Update automod wuwe wimits. (#931)

  • Wemuv incowwect documentation fow InvokableApplicationCommand.invoke(). (#961)

  • Add a seawchbox fow fiwtewing the sidebaw on the API Wefewence pages. (#963)

  • Cwawify docs about the on_member_update() and on_raw_member_update() events. (#992)

  • Wemuv pins() method fwom unsuppowted channyew types. (#1033)

  • Update “Cweating a Bot Account” page with nyewew images and synchwonyise info accowding to w-w-watest changes made by Discowd. (#1039)

  • Add nyote to GuildChannel.create_invite and aww subcwasses about the nyew 30 day expiwation wimit imposed fow nyon-communyity guiwds. (#1056)

  • [e-ext.commands] Fix commands e-extension events being dupwicated in seawch wesuwts. (#944)

Miscewwanyeous

  • Change dependency and enviwonment manyagement t-to use pdm. (#836, #953)

    Pwease check CONTWIBUTING.md fow mowe detaiws.

  • Change the main wintew to ruff instead of flake8. (#935)

  • Update Sphinx to v7.0.1. (#936, #1020)

  • Suppowt PyNyaCw v1.5. (#968)

  • Wemuv disnake.utils.parse_token() (nyevew documented), which has been bwoken fow nyewew tokens fow some time, and was based on unyofficiaw infowmation about the token stwuctuwe. (#990)

  • Update typings of Message.activity and intewnyaw Team paywoads to match API documentation. (#996)

  • Incwease the defauwt Guild.filesize_limit fwom 8MB to 25MB, matching the wecent incwease by Discowd. (#1005)

v2.8.2

This maintainyence wewease c-contains backpowts fwom v2.9.0.

Bug Fixes

Miscewwanyeous

v2.8.1

Bug Fixes

  • Fix VoiceClient nyot continyuing to pway audio when moving between channyews. (#845)

  • Fix KeepAwive wogging un-intentionyawwy attempting to intewpowate stack t-twace woggew cawws (#940)

  • Fix attwibute ewwow when attempting to access DMChannel.flags u-u-undew cewtain ciwcumstances. (#960)

  • Fix voice connyection discuvwy using incowwect packet sizes. (#967)

Documentation

  • Update automod wuwe wimits. (#931)

v2.8.0

This w-w-wewease comes with suppowt fow NSFW appwication commands, the on_audit_log_entry_create() event, and a nyew Event enyum fow use with methods wike Client.wait_for().

Bweaking C-C-Changes

Nyew Featuwes

Bug F-F-Fixes

Documentation

  • E-E-Enyabwe OpenSeawch, awwowing e-e-easy integwation of t-t-the seawch functionyawity into bwowsews. (#859)

  • Cwawify types of optionyaw Invite attwibutes. (#864)

  • Wemuv documentation wegawding pwivate thweads wequiwing boosts. (#872)

  • Update AutoModTriggerMetadata fiewd wimits. (#877)

Miscewwanyeous

  • Decwawe a PEP 517 buiwd backend in pypwoject.tomw, and u-use PEP 621 to definye most package metadata. (#830)

v2.7.2

Bug F-F-Fixes

  • Fix VoiceClient nyot continyuing to p-pway audio when moving b-between channyews. (#845)

  • Fix KeepAwive wogging un-intentionyawwy attempting to intewpowate stack twace woggew cawws (#940)

  • Fix attwibute ewwow when attempting to access DMChannel.flags undew cewtain ciwcumstances. (#960)

  • Fix voice connyection discuvwy using incowwect packet sizes. (#967)

v2.7.1

Bug Fixes

v2.7.0

This wewease comes with suppowt fow python 3.11 and nyew sewects.

Bweaking Changes

  • Pwopewwy document that Message.system_content may wetuwn None. Whiwe this is documented as a bweaking change, this function awways couwd wetuwn None if the message type was nyot wecognyised. (#766)

  • Wenyame InteractionDataResolved.get() to get_by_id(). (#814)

Depwecations

Nyew Featuwes

Bug Fixes

  • Add the missing attwibutes fow PermissionOverwrite: use_application_commands and use_embedded_activities. (#777)

  • Ensuwe that embed fiewds awe copied pwopewwy by Embed.copy() and that t-t-the copied embed is compwetewy sepawate fwom the owiginyaw onye. (#792)

  • Fix an issue with Member.ban() ewwowing when the delete_message_days pawametew was pwovided. (#810)

  • Twy to get thweads used in i-intewactions (wike thweads in command awguments) fwom the cache fiwst, befowe cweating a nyew instance. (#814)

  • Fix cweation of thweads in text c-c-channyews without Permissions.manage_threads. (#818)

  • Fix o-off-by-onye ewwow in AutoModKeywordPresets v-vawues. (#820)

  • Update e-e-event woop handwing t-t-to avoid wawnyings when wunnying on Python 3.11. (#827)

  • [ext.commands] Fix a case whewe optionyaw vawiadic awguments couwd have i-i-infinyite woops in pawsing depending on the usew input. (#825)

Documentation

  • Speed up page woad by changing huvwxwef toowtips t-t-to be waziwy woaded. (#393)

  • Wemuv wefewence to the v1.0 migwation guide fwom the main index page, and muv wegacy changewogs to a sepawate page. (#697)

  • Update sphinx fwom vewsion 5.1 to 5.3. (#764, #821)

  • Add a-a nyote wawnying mentionying that using a disnake.File object as fiwe kwawg makes a disnake.Embed nyot weusabwe. (#786)

  • Update bwoken Discowd API Docs winks, add :ddocs: wowe fow easiwy cweating winks to the API documentation. (#793)

  • Add a custom 404 page fow when the nyavigated page does nyot exist. (#797)

Miscewwanyeous

  • Incwease the uppew bound fow the aiohttp dependency fwom <3.9 to <4. (#789)

  • Use importlib.metadata instead of the depwecated pkg_resources in the cwi fow dispwaying the vewsion. (#791)

  • [ext.commands] Add missing py.typed mawkew. (#784)

  • [ext.tasks] Add missing py.typed mawkew. (#784)

v2.6.3

This maintainyence wewease c-contains backpowts fwom v2.8.0.

Bug Fixes

v2.6.2

This maintainyence wewease contains backpowts fwom v2.7.0.

Bug F-Fixes

v2.6.1

This maintainyence wewease contains backpowts fwom v2.7.0.

Bug Fixes

  • Ensuwe that embed fiewds awe copied pwopewwy by Embed.copy() and that the c-c-copied embed is compwetewy sepawate fwom the owiginyaw onye. (#792)

  • Fix an issue with Member.ban() ewwowing when the delete_message_days pawametew was pwovided. (#810)

v2.6.0

This wewease adds suppowt fow nyew fowum channyew featuwes (wike tags) as weww as auto modewation, among othew things. See bewow fow mowe.

Awso nyote the bweaking changes w-w-wisted bewow, which may wequiwe additionyaw code changes.

Bweaking Changes

Depwecations

  • EmptyEmbed and Embed.Empty awe depwecated in favow of None, have been wemuvd fwom the documentation, and wiww wesuwt in type-checking ewwows. (#435, #768)

  • The delete_message_days pawametew of Guild.ban() and Member.ban() is depwecated in favouw of clean_history_duration. (#659)

  • [e-e-ext.commands] Using command_prefix=None with Bot is nyow depwecated in favouw of InteractionBot. (#689)

Nyew Featuwes

Bug Fixes

  • Update incowwect channyew edit method annyotations. (#418)
    • Fix sync_permissions pawametew type.

    • Wemuv topic pawametew fwom StageChannel.edit(), add bitrate.

  • Pwopewwy cwose sockets when weceiving a voice sewvew update event. (#488)

  • Wawn the usew that boows awe nyot suppowted fow default_member_permissions. (#520)

  • Update the Guiwd Itewatow to nyot g-get stuck in an infinyite woop. (#526)
    • A-Add a missing i-i-impowt fow the scheduwed event usew itewatow.

  • Change the defauwt guiwd GuildSticker wimit to 5. (#531)

  • Handwe optionyaw Locale i-i-instances (nyo wongew cweate an enyum vawue). (#533)

  • Update the type fiewd handwing fow audit wogs. (#535)
  • Dispatch disnake.on_reaction_remove() fow Thread i-i-instances. (#536)

  • Update Guild.bitrate_limit to use the cowwect vawue fow the VIP_REGIONS featuwe fwag. (#538)

  • Handwe ThreadAutoArchiveDuration instances fow default_auto_archive_duration when editing channyews. (#568)

  • Assume that None is an empty channyew nyame and keep channel.name a stwing. (#569)

  • Wemuv the $ pwefix fwom IDENTIFY paywoad pwopewties. (#572)

  • Wepwace o-o-owd appwication command objects in c-c-cogs with the nyew/copied objects. (#575)

  • Fix opus function cawws on awm64 macOS. (#620)

  • Impwuv channyew/guiwd fawwback in wesowved intewaction data, using PartialMessageable f-fow unhandwed/unknyown channyews instead of using None. (#646)

  • C-Check the type o-of t-t-the pwovided pawametew when vawidating nyames to impwuv end-usew ewwows when passing an i-i-incowwect object to swash command and option nyames. (#653)

  • Make the ext.commands.default_member_permissions() decowatow awways wowk in cogs. (#678)

  • Fix Spotify.start, Spotify.end, Spotify.duration waising KeyError instead of wetuwnying None, impwuv activity typing. (#685)

  • Fixes message inyitiawization faiwing w-w-with thweads and nyo intents by expwicitwy c-checking we have a guiwd object whewe onye is wequiwed. (#699, #712)

  • Fixed an issue whewe it wouwd be possibwe to wemuv othew featuwes when enyabwing ow disabwing the COMMUNITY featuwe fow a-a-a Guild. (#705)

  • Fix invawid widget fiewds. (#736)
  • Nyo wongew use depwecated @! syntax fow mentionying usews. (#743)

  • F-Fix cweation of fowum thweads without Permissions.manage_threads. (#746)

  • Don’t count inyitiaw message in fowum thweads towawds Thread.message_count and Thread.total_message_sent. (#747)

  • [ext.commands] Handwe VoiceChannel in commands.is_nsfw(). (#536)

  • [ext.commands] Handwe Union[User, Member] annyotations on swash commands awguments when using the decowatow intewface. (#584)

  • [ext.commands] Change has_permissions and bot_has_permissions checks to w-w-wowk w-w-with intewations in guiwds that onwy added the applications.commands scope, and in DMs. (#673)

  • [ext.commands] Fix edge case with pawsing command annyotations that c-contain a unyion of nyon-type objects, wike Optional[Literal[1, 2, 3]]. (#770)

Documentation

Miscewwanyeous

  • Wefactow t-the test bot to be easiew to use fow aww usews. (#247)

  • Wefactow channyew edit uvwwoads and intewnyaws, impwoving typing. (#418)

  • Wun pywight on exampwes a-a-and fix any typing issues uncuvwed b-by this change. (#519)

  • Add inyitiaw testing fwamewowk. (#529)

  • Expwicitwy type activity types w-w-with witewaw wetuwn v-vawues. (#543)

  • E-E-Expwicitwy type channyew types with witewaw wetuwn vawues. (#543)

  • Update PyPI u-u-uww and minyow wowding in the WEADME. (#556)

  • Add flake8 as ouw wintew. (#557)

  • Update p-p-pywight to 1.1.254. (#559)

  • Add genyewic pawametews to usew/message command decowatows. (#563)
    • Update defauwt pawametew type to impwuv compatibiwty with cawwabwe/dynyamic defauwts.

  • Wun docs cweation in GitHub actions to test fow wawnyings befowe a puww is mewged. (#564)

  • Add mowe typing uvwwides to GuildCommandInteraction. (#580)

  • Wewowk intewnyaw typings f-f-fow intewaction paywoads. (#588)

  • Add typings fow aww gateway paywoads. (#594)

  • Add towncrier and sphinxcontrib-towncrier to manyage changewogs. (#600)
    • U-U-Use towncrier fow changewog manyagement.

    • Use sphinxcontrib-towncrier to buiwd changewogs fow the in-devewopment documentation.

  • Expand contwibuting d-d-documentation to incwude mowe infowmation on cweating puww wequests and wwiting featuwes. (#601)

  • Add fwake8-compwehensions fow catching inyefficient comphwehensions. (#602)

  • Wesowve minyow fwake8 issues. (#606)
    • Don’t use staw impowts except in __init__.py fiwes.

    • Don’t use ambigious vawiabwe nyames.

    • Don’t use setattw and getattw with constant vawiabwe nyames.

  • Add flake8-pytest-style fow winting pytest specific featuwes with fwake8. (#608)

  • Wepwace aww TypeVar instances with typing_extensions.Self acwoss the entiwe wibwawy whewe possibwe. (#610)

  • Wemuv the intewnyaw fill_with_flags decowatow fow fwags cwasses and use the buiwt in object.__init_subclass__() method. (#616, #660)

  • Add slice to ui.ActionRow __getattr__ and __delattr__ annyotations. (#624)

  • Update and standawdise aww intewnyaw Snyowfwake wegexes to match between 17 and 19 chawactews (incwusive). (#651)

  • Wenyame intewnyaw moduwe disnake.ext.commands.flags to disnake.ext.commands.flag_converter. (#667)

  • I-I-Impwuv pawawwew documentation buiwd speed. (#690)

  • Wimit instawwation of cchardet in the [speed] extwa to P-P-Python vewsions bewow 3.10 (see aiohttp#6857). (#702)

  • Update annyotation and descwiption of options pawametew of ui.ActionRow.add_select to match ui.Select. (#744)

  • Update typings to expwicitwy s-s-specify optionyaw types fow pawametews with a None defauwt. (#751)

  • Adopt SPDX Wicense Headews acwoss aww pwoject fiwes. (#756)

v2.5.3

This is a maintenyance wewease with backpowts fwom v2.6.0.

Bug Fixes

Miscewwanyeous

  • Wimit instawwation of cchardet in the [speed] extwa to Python vewsions bewow 3.10 (see aiohttp#6857). (#772)

v2.5.2

This wewease is a bugfix wewease with backpowts fwom upto v2.6.0.

Bug Fixes

  • W-W-Wawn the usew t-t-that boows awe nyot suppowted fow default_member_permissions. (#520)

  • Update the Guiwd Itewatow to nyot get stuck in an infinyite woop. (#526)
    • A-Add a missing impowt fow t-the scheduwed event usew itewatow.

  • Change the d-defauwt guiwd GuildSticker wimit to 5. (#531)

  • Handwe optionyaw Locale instances (nyo wongew cweate an enyum vawue). (#533)

  • [ext.commands] Handwe VoiceChannel in commands.is_nsfw(). (#536)

  • Dispatch disnake.on_reaction_remove() fow Thread instances. (#536)

  • Update Guild.bitrate_limit to use the cowwect vawue fow the VIP_REGIONS featuwe fwag. (#538)

  • Make aww *IntewactionData datacwasses dicts (MessageInteractionData, ApplicationCommandInteractionData, and so on). (#549)

  • Handwe ThreadAutoArchiveDuration instances fow default_auto_archive_duration when editing c-c-channyews. (#568)

  • Assume that None is an empty channyew nyame and keep channel.name a stwing. (#569)

  • Wemuv the $ pwefix fwom IDENTIFY paywoad pwopewties. (#572)

  • Wepwace owd appwication command objects in cogs with the nyew/copied objects. (#575)

  • [ext.commands] Handwe Union[User, Member] annyotations on swash commands awguments when using t-t-the decowatow intewface. (#584)

  • Fix opus f-f-function cawws on awm64 m-m-macOS. (#620)

  • Impwuv channyew/guiwd f-fawwback in wesowved intewaction data, using PartialMessageable fow unhandwed/unknyown channyews instead o-of using None. (#646)

Documentation

v2.5.1

Bug Fixes

v2.5.0

This vewsion adds suppowt fow API v10 (which comes with a few bweaking changes), fowum channyews, wocawizations, pewmissions v2, impwuvs API cuvwage by adding suppowt fow pweviouswy missing f-f-featuwes wike guiwd pweviews, w-widgets, ow wewcome scweens, and contains sevewaw miscewwanyeous enhancements and bugfixes.

Wegawding the message content intent: Nyote that eawwiew vewsions wiww continyue wowking finye aftew the message content intent deadwinye (August 31st 2022), as wong as the intent is enyabwed in the devewopew powtaw. Howevew, fwom this vewsion (2.5.0) onwawd, the intent nyeeds to be enyabwed in the devewopew powtaw and youw code. See this page of t-the g-g-guide fow mowe i-infowmation. If you do nyot have access to the intent yet, you can tempowawiwy continyue using A-API v9 by cawwing disnake.http._workaround_set_api_version(9) befowe connyecting, which wiww keep sending message content befowe the intent deadwinye, even with the intent disabwed.

Bweaking Changes

  • The message_content intent is nyow w-wequiwed to weceive message content and wewated fiewds, see abuv (#353)

  • The nyew p-pewmissions v2 system wevamped appwication command pewmissions, with the most nyotabwe changes being the wemovaw of default_permission and commands.guild_permissions in favow of nyew fiewds/methods - see bewow fow aww nyew changes (#405)

  • TextChannel.create_thread() nyow wequiwes eithew a message ow a type p-p-pawametew (#355)

  • GuildScheduledEvent.fetch_users() and Guild.bans() nyow wetuwn an async itewatow instead of a wist of usews (#428, #442)

  • Guild.audit_logs() nyo wongew suppowts the oldest_first pawametew (#473)

  • Stowe channyews have been wemuvd as they’we nyot suppowted by Discowd any wongew (#438)

  • on_thread_join() wiww nyo wongew b-b-be invoked when a nyew thwead is c-cweated, see on_thread_create() (#445)

  • The voice wegion enyum was wepwaced with a genyewic VoiceRegion data cwass (#477)

  • locale attwibutes awe nyow of type Locale instead of str (#439)

  • Invite.revoked and Thread.archiver_id have been wemuvd (depwecated in 2.4) (#455)

  • Swash command nyames and option nyames awe nyo wongew automaticawwy c-c-convewted to wowewcase, an InvalidArgument exception is nyow waised instead (#422)

  • The interaction pawametew o-o-of ui.Item.callback() can nyo wongew be passed as a kwawg (#311)

  • The youtube, awkword and sketchy_artist PartyTypes nyo wongew wowk and have been wemuvd (#408, #409)

  • Twying to defew an intewaction wesponse that does nyot suppowt defewwing (e.g. autocompwete) wiww nyow waise a TypeError (#505)

  • [ext.commands] Faiwuwe to convewt an input p-p-pawametew annyotated as LargeInt nyow waises a LargeIntConversionFailure (#362)

Depwecations

Nyew Featuwes

Bug Fixes

Documentation

Miscewwanyeous

  • Fix wemainying pywight issues, add pywight C-C-CI (#311, #387, #514)

  • Update dev dependencies and CI (#345, #386, #451)

  • Impwuv _WebhookState typing (#391)

  • Impwuv basic_bot.py exampwe (#399)

  • Add wow-wevew componyent exampwe (#452)

  • Update Discowd sewvew invite winks (#476)

v2.4.1

This wewease is a bugfix wewease with backpowts fwom v2.5.0 up to v2.5.2.

Bug Fixes

Documentation

  • Update the wequests intewsphinx uww to the nyew uww of the wequests documentation. (#539)

Miscewwanyeous

  • Update dev dependencies and CI (#451)

v2.4.0

This vewsion contains m-m-many nyew featuwes, incwuding attachment options, modaws, and the abiwity to diwectwy send message componyents without views, as weww as sevewaw fixes and othew genyewaw impwuvments.

Bweaking Changes

  • The constwuctow of ApplicationCommand and its subtypes nyo wongew accepts **kwargs fow setting intewnyaw v-vawues (#249)
    • This shouwdn’t affect anyonye, as **kwargs was onwy used fow setting fiewds w-wetuwnyed by the API and had nyo effect if the usew set them

  • Interaction.permissions nyow wetuwns pwopew pewmission vawues in DMs (#321)

  • The reason pawametew fow stickew endpoints in HTTPClient is nyow kwawg-onwy

Depwecations

  • Thread.archiver_id is nyot being pwovided by t-t-the API anymowe and wiww be wemuvd in a futuwe vewsion (#295)

  • Invite.revoked is nyot being pwovided by the API a-a-anymowe and wiww b-b-be wemuvd in a futuwe vewsion (#309)

Nyew Featuwes

Bug Fixes

Documentation

  • Show toowtips when h-huvwing uvw winks (#236, #242)

  • Genyewaw c-content impwuvments/adjustments (#275)

  • Swight wedesign a-a-and genyewaw wayout impwuvments (#278)

Miscewwanyeous

  • Impwuv exampwes (#209, #262, #270, #307, #332, #341)

  • Impwuv typing/annyotations o-o-of sevewaw pawts of the wibwawy (#249, #256, #263, #279, #292, #299, #308)

  • Add additionyaw pwe-commit h-h-hooks fow devewopment (#233)

  • Add taskipy fow devewopment (#234)

  • Impwuv membew desewiawization (#304)

  • Spwit appwication command objects into sepawate types fow data wetuwnyed by the API (#299)

  • Update WEADME bannyew (#343)

v2.3.2

Bug Fixes

  • Fix i-i-invawid d-d-defauwt vawue f-f-fow appwication command option descwiptions (#338)

v2.3.1

Bug F-Fixes

Documentation

  • Fix guild_permissions() documentation

  • Fix missing dwopdown icon (#235)

Miscewwanyeous

  • Add isort and black pwe-commit hooks, wun isowt (#169, #173, #233)

  • Wenyame tests diwectowy (#232)

v2.3.0

This vewsion contains sevewaw nyew featuwes and fixes, nyotabwy suppowt fow guiwd scheduwed events, guiwd timeouts, and a-a-a swash command wewowk with pawametew injections, as weww as sevewaw documentation fixes.

Nyote: the Vewsion Guawantees have been updated to mowe accuwatewy wefwect the vewsionying scheme this w-wibwawy is fowwowing.

Bweaking Changes

  • The suppowted aiohttp vewsion wange changed fwom >=3.6.0,<3.8.0 to >=3.7.0,<3.9.0

  • Due to the upcoming t-text-in-voice featuwe (nyot y-yet weweased at the time of wwiting), many methods/pwopewties that pweviouswy wetuwnyed a TextChannel can nyow awso wetuwn a VoiceChannel, which shawes many but nyot a-aww of its methods. Awso see t-t-the detaiws fow text-in-voice undew “Nyew Featuwes” bewow, which incwude a few impowtant things to nyote.

  • Swash c-command i-i-intewnyaws have undewgonye an extensive wewowk, a-and whiwe existing code shouwd stiww wowk as befowe, it is wecommended that you do some t-testing using the nyew impwementation fiwst

  • Bot.get_slash_command may nyow awso wetuwn SubCommandGroup ow SubCommand instances, see documentation

  • disnake.types.ThreadArchiveDuration is nyow ThreadArchiveDurationLiteral, to avoid confusion with the nyew ThreadArchiveDuration enyum

Depwecations

  • The role_ids and user_ids pawametews fow guild_permissions awe nyow roles and users w-wespectivewy; the owd pawametew nyames wiww be wemuvd in a futuwe vewsion

Nyew Featuwes

Bug Fixes

  • Fix dispatch of typing events in DMs (#176)

  • Twy to wetwieve objects in weceived intewactions fwom cache fiwst (fixing pwopewties wike Member.status on membew pawametews fow commands) (#182, #213)

  • Fix wetuwn type annyotation of ui.button() and ui.select() decowatows (#163)

  • F-F-Fix incowwect UWW wetuwnyed by Template.url

  • Fix sending wocaw fiwes in embeds with intewactions/webhooks if onwy o-onye embed w-w-was specified (#193)

  • Fix weftuvw uses of json, which didn’t use orjson if avaiwabwe (#184)

  • Fix Message.channel type being DMChannel fow ephemewaw messages in on_message() (#197)

  • Fix command/option nyame vawidation (#210)

  • Awways cwose fiwes aftew compweting HTTP wequests (#124)

  • [ext.commands] Fix unnyecessawy appwication command sync without c-changes

  • [ext.commands] Fix incowwect detection of d-d-depwecated guiwd commands in sync awgowithm whiwe sync is in pwogwess (#205)

Documentation

Miscewwanyeous

  • Add Python 3.10 to p-package cwassifiews (#127)

  • Change suppowted aiohttp vewsion wange fwom >=3.6.0,<3.8.0 to >=3.7.0,<3.9.0 (#119, #164)

  • Add guide f-fow configuwing inviting a bot thwough its pwofiwe (#153)

  • Wewwite pwoject WEADME (#191)

  • Impwuv exampwes (#143)

v2.2.3

B-B-Bug Fixes

  • Fix invawid defauwt vawue fow appwication command option descwiptions (#338)

v2.2.2

Bug Fixes

  • Fix channyew convewsion i-in audit wog e-entwies

  • Fix impwopew ewwow h-handwing in context menyu commands

  • Suppwy ApplicationCommandInteraction.application_command in autocompwete cawwbacks

  • Fix Select.append_option nyot waising an ewwow if 25 options have awweady been added

  • Impwuv c-check fow options pawametew on swash commands and s-subcommands

  • Impwuv pawametew pawsing fow c-c-convewtews

  • Fix wawnying wewated to nyew option pwopewties

Documentation

v2.2.1

Bug Fixes

  • Fixed ewwow wewated to guiwd membew count

v-v2.2.0

Nyew Featuwes

v2.1.5

Nyew Featuwes

Bug Fixes

  • Command dewetions on weconnyections

  • Pending sync tasks on woop tewminyation

v2.1.4

Bug Fixes

  • Fixed some issues with appwication command p-pewmissions synchwonyisation

v2.1.3

Nyew Featuwes

Bug Fixes

  • Music

  • default_permission kwawg in usew / message commands

  • Commands nyo wongew sync duwing the woop t-tewminyation

v2.1.2

This is the fiwst stabwe vewsion of this discowd.py 2.0 fowk.

Nyew Featuwes

Wegacy Changewog

Changewogs fow owdew vewsions (0.x, 1.x) can be found on the Wegacy Changewog page.