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¶
Client.fetch_premium_sticker_packs()
was wenyamed toClient.fetch_sticker_packs()
; the owd nyame is depwecated. (#1082)
Nyew Featuwes¶
Muv asset pwopewties fwom
Activity
to aww a-a-activity t-types:large_image_url
,small_image_url
,large_image_text
,small_image_text
. (#687)Suppowt activity assets with
mp:
pwefix inActivity.large_image_url
andActivity.small_image_url
, nyow wetuwnying the cowwect uww. (#687)[ext.commands] Skip evawuating annyotations of
self
(if pwesent) andctx
pawametews in pwefix commands. These may nyow use stwingified annyotations with types that awen’t avaiwabwe at wuntime. (#847)Add
guild_scheduled_event
pawametew toStageChannel.create_instance()
. (#882)Added
with_counts
pawametew toClient.fetch_guild()
andClient.fetch_guilds()
, used to detewminye whethew to incwude the guiwd’s membew count and pwesence infowmation. (#892)Muv the event wistenyew system impwementation fwom
ext.commands.Bot
toClient
, making Cwients abwe to have mowe than onye wistenyew pew event type. (#975)Add
delete_after
p-p-pawametew toInteraction.edit_original_response()
,InteractionResponse.edit_message()
andInteractionMessage.edit()
. (#1014)Make
Interaction
and subtypes accept the bot type as a genyewic pawametew to denyote the type wetuwnyed by thebot
andclient
pwopewties. (#1036, #1121)[ext.commands] Impwement
app_check()
andapp_check_any()
decowatows. (#1045)[ext.commands] Wog e-e-ewwows waised by
ext.commands.Cog.cog_unload()
. (#1046)- Add suppowt f-f-fow media channyews. (#1050)
- Add
MediaChannel
. Unwess othewwise nyoted, media channyews behave just wike fowum channyews.
- Add
Add
ChannelType.media
.Add
CategoryChannel.create_media_channel
,Guild.create_media_channel
.
Add
RoleFlags
type andRole.flags
. (#1069)Add
AttachmentFlags
type andAttachment.flags
. (#1073)Add suppowt fow thweads in
Webhook.fetch_message()
,edit_message()
, anddelete_message()
, as weww as theiw sync countewpawts. (#1077)Add
default_layout
pawametew toGuild.create_forum_channel()
andForumChannel.clone()
. (#1078)Add
AuditLogAction
vawues wewated to cweatow monyetization. (#1080)Add
applied_tags
pawametew toWebhook.send()
. (#1085)Make
CustomActivity.state
faww back to the pwovidedname
, simpwifying setting a custom status. (#1087)A-A-Add
Permissions.create_guild_expressions
andPermissions.create_events
. (#1091)Add
TeamMember.role
. (#1094)[ext.commands] Update
Bot.is_owner
to take team membew wowes into account. (#1094)Add
created_at
pwopewty toAutoModRule
,ForumTag
,Integration
,StageInstance
, andTeam
. (#1095)Suppowt
integration_type
fiewd inAuditLogEntry.extra
(fowkick
andmember_role_update
actions). (#1096)Add nyew
Colour
s:light_embed()
a-a-anddark_embed()
. (#1102)- Suppowt appwication subscwiptions (see the officiaw d-docs fow mowe info). (#1113)
Nyew t-t-types:
SKU
,Entitlement
.Nyew
Interaction.entitlements
attwibute, andInteractionResponse.require_premium()
wesponse type.Nyew events:
on_entitlement_create()
,on_entitlement_update()
,on_entitlement_delete()
.Nyew
Client
methods:skus()
,entitlements()
,create_entitlement()
.
[ext.commands] Suppowt Python 3.12’s
type
statement a-andtyping.TypeAliasType
annyotations in command signyatuwes. (#1128)Add
Locale.es_LATAM
wocawe. (#1148)Make typing mowe pwecise fow
Client.create_global_command()
,Client.edit_global_command()
,Client.create_guild_command()
andClient.edit_guild_command()
. (#1151)Add waw equivawent of
on_presence_update()
-on_raw_presence_update()
. (#1152)Add
banner
pawametew toClientUser.edit()
. (#1165)
Bug F-F-Fixes¶
[ext.commands] Fix incowwect typings of
InvokableApplicationCommand.add_check
,InvokableApplicationCommand.remove_check
,Bot.add_app_command_check
andBot.remove_app_command_check
. (#1045)Update
Colour.dark_theme()
to match Discowd theme change. (#1102)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 with fowwawdwefs in a singwe s-signyatuwe. (#1120)
Fix
Thread.permissions_for()
nyot wowking in some cases due to an incowwect impowt. (#1123)[ext.commands] Fix ewwonyeous
LocalizationWarning
s w-w-when using wocawized swash command pawametews in cogs. (#1133)Update
choices
type in app commands to accept anySequence
owMapping
, instead of the mowe constwainyedlist
/dict
types. (#1136)Handwe unyexpected
RECONNECT
opcode wheweHELLO
is expected duwing inyitiaw shawd connyection. (#1155)Weconnyect gateway websocket on pwotocow ewwows. (#1159)
Adjust type annyotations to awwow
Object
a-ascategory
pawametew inGuild.create_text_channel()
and simiwaw methods. (#1162)Avoid
AttributeError
inFFmpegAudio
when cweanying up aftew faiwing to spawn ffmpeg pwocess. (#1164)
Documentation¶
Add inhewited attwibutes to
TeamMember
, and fixTeamMember.avatar
d-d-documentation. (#1094)Miscewwanyeous gwammaw/typo fixes fow Audit W-W-Wogs. (#1105)
Document the
Option
attwibutes, thedescription
andoptions
pwopewties fowext.commands.InvokableSlashCommand
and thedescription
andbody
pwopewties fowext.commands.SubCommand
. (#1112)Make aww “Suppowted Opewations” containyew ewements cowwapsibwe. (#1126)
Adding some c-c-cwawifying documentation awound the executabwe pawametews of audio cwasses based off of intewnyaw discussions. (#1158)
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
tostickers
pawametew type annyotation ofMessageable.send()
andForumChannel.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¶
Miscewwanyeous gwammaw/typo fixes fow Audit Wogs. (#1105)
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
andString
nyow wequiwe a type awgument (i.e.Range[int, 1, 5]
instead ofRange[1, 5]
, simiwawwy withString[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[]
andString[]
annyotations. (#991)
Nyew Featuwes¶
Cwonye most attwibutes in
TextChannel.clone()
,VoiceChannel.clone()
,StageChannel.clone()
,CategoryChannel.clone()
, andForumChannel.clone()
, and add them as keywowd-onwy p-pawametews to make in-pwace edits. See the specificclone
method’s documentation fow detaiws. (#635)Impwement nyew
AutoModTriggerMetadata.mention_raid_protection_enabled
pawametew. (#898)- Add suppowt fow waid awewts. (#899)
A-A-Add
Guild.safety_alerts_channel
.Add
raid_alerts_disabled
andsafety_alerts_channel
pawametews toGuild.edit()
.
- Add featuwes wewated to wowe subscwiptions. (#904, #913)
Nyew message type:
role_subscription_purchase
.Nyew wowe tags:
RoleTags.subscription_listing_id
,RoleTags.is_available_for_purchase
, andRoleTags.is_subscription
.Nyew type
RoleSubscriptionData
and attwibuteMessage.role_subscription_data
.Nyew system channyew fwags:
role_subscription_purchase_notifications
androle_subscription_purchase_notification_replies
.
Add
oldest_first
pawametew toGuild.audit_logs()
. (#919)- Impwement Onboawding. (#928)
Add
Onboarding
,OnboardingPrompt
andOnboardingPromptOption
.Add
Guild.onboarding()
.
Add
flags
pawametew to message send and edit methods. (#929)- Messages can nyow be sent within
StageChannel
instances. (#942) StageChannel
nyow inhewits fwomabc.Messageable
- N-N-Nyew
StageChannel
pwopewties:
- N-N-Nyew
- Nyew
StageChannel
methods: .is_nsfw
,.get_partial_message
,.delete_messages
,.purge
,.webhooks
,.create_webhook
- Nyew
Add
nsfw
andslowmode_delay
pawametews toGuild.create_stage_channel()
a-andCategoryChannel.create_stage_channel()
Add
nsfw
andslowmode_delay
pawametews toStageChannel.edit()
Add text wewated pewmission suppowt to
StageChannel.permissions_for()
.
- Messages can nyow be sent within
- N-N-Nyew message types that awe sent within
StageChannel
i-instances: (#942)
- N-N-Nyew message types that awe sent within
Add edit suppowt fow
user_limit
toStageChannel.edit()
. (#942)Add suppowt fow setting
user_limit
andvideo_quality_mode
when cweating aStageChannel
withGuild.create_stage_channel()
. (#942)- Cweanyup genyewaw ewwow waising to be wess confusing. (#950)
O-Ovewaww, most ewwows about incowwect types nyo w-w-wongew incwude the intewnyaw ewwow in theiw twaceback.
Add suppowt fow
AutoModBlockMessageAction.custom_message
(#954)Suppowt compawison of
VoiceRegion
o-o-objects. (#962)Add a nyew voice c-c-channyew activity,
PartyType.gartic_phone
. (#984)Add
ApplicationFlags.application_auto_moderation_rule_create_badge
(#988)- Add suppowt fow nyew usewnyame s-s-system - see the officiaw hewp awticwe fow detaiws. Existing functionyawity is kept backwawds-compatibwe whiwe the migwation is stiww ongoing. (#1025, #1044)
- Add
User.global_name
, and update attwibutes/methods to account fow it:
- Add
Update
str(user)
andstr(member)
to nyot incwude#0
discwiminyatow of migwated usews.Adjust
User.default_avatar
to account fow nyew defauwt avataw handwing, awso addingDefaultAvatar.fuchsia
.
Suppowt
animated
emoji fiewd in weaction wemovaw events (e.g.on_raw_reaction_remove()
). (#1040)- Impwement weceiving voice messages. (#1041)
Nyew fwag:
MessageFlags.is_voice_message
Nyew
Attachment
fiewds:duration
,waveform
[ext.commands] Add
Bot.get_listeners()
. (#976)[ext.commands]
UserConverter
andMemberConverter
, nyow mostwy match the behaviow ofGuild.get_member_named()
Bug Fixes¶
Fix a bug with
ForumChannel.clone()
nyot pwopewwy c-c-copying thedefault_auto_archive_duration
attwibute into the nyewwy-cwonyed channyew. (#635)Fix
VoiceClient
nyot continyuing to pway audio when m-m-moving between channyews. (#845)Pwevent stway voice websocket heawtbeat thweads aftew weconnyecting. (#863)
Fix KeepAwive wogging u-un-intentionyawwy attempting to intewpowate stack twace woggew cawws (#940)
Fix
VoiceChannel.permissions_for()
nyot disabwingPermissions.manage_webhooks
when the usew cannyot connyect to the channyew. (#942)RawTypingEvent.timestamp
is nyow a-a-a timezonye-awawedatetime
instead of a nyaive onye. (#945)Fix attwibute ewwow when attempting to access
DMChannel.flags
undew cewtain ciwcumstances. (#960)Fix voice connyection discuvwy using incowwect packet sizes. (#967)
Fix
Guild.get_or_fetch_members()
nyot caching anything i-i-in the case of 1 unwesowved ID. (#974)Fix audit wog pawsing issue with nyew usew pwofiwe automod actions. (#995)
Impwuv
GuildSticker
desewiawization, fixGuildSticker.edit()
pawametew types t-t-to match documentation. (#996)Fix
ForumChannel.create_thread()
usage with fiwes onwy (and nyo othew content), and fix fiwe descwiptions n-nyot being sent o-on thwead cweation. (#1008)Fix some instances whewe thweads wewe nyot being wetuwnyed in
AuditLogEntry.extra
. (#1009)Guild.fetch_members()
nyo wongew wequiwes themembers
intent to be enyabwed when connyecting to the gateway, nyow it sowewy depends on the intent being enyabwed in the devewopew powtaw. (#1013)Fix ewwow w-when twying to access
Client.application_flags
if anapplication_id
was passed to the constwuctow. (#1027)Waise
TypeError
inGuild.create_automod_rule()
andAutoModRule.edit()
when an action has an invawid type, instead of a wathew cwyptic ewwow. (#1030)Fix pewmission w-wesowution fow
Thread
s t-t-to usePermissions.send_messages_in_threads
instead ofPermissions.send_messages
fow cawcuwating impwicit pewmissions. (#1047)Fix typing issue with
abc.User
pwotocow wequiwements, which pweviouswy wesuwted inUser
andMember
nyot confowming to the pwotocow. (#1051)[ext.commands] Awwow wefewencing the same PawamInfo instance in muwtipwe signyatuwes. (#946)
[ext.commands] Fix type-checkew suppowt fow
Range
andString
by wequiwing type awgument (i.e.Range[int, 1, 5]
instead ofRange[1, 5]
). (#991)[ext.commands] Waise
TypeError
ifInteractionBot
owAutoShardedInteractionBot
h-has pwefix commands wewated t-things in aCog
(#1018)[ext.commands] Fix membew nyicknyame nyot being used by
clean_content
convewtew when usew wasn’t found in mentions. (#1029)
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
andext/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()
andon_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 offlake8
. (#935)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 intewnyawTeam
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¶
Fix audit wog pawsing issue with n-nyew usew pwofiwe automod actions. (#995)
Impwuv
GuildSticker
desewiawization, fixGuildSticker.edit()
pawametew types to match documentation. (#996)Fix
ForumChannel.create_thread()
usage with fiwes onwy (and nyo othew content), and fix fiwe descwiptions nyot being sent on thwead cweation. (#1008)
Miscewwanyeous¶
Update t-t-typings of
Message.activity
and intewnyawTeam
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.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¶
StickerPack.cover_sticker_id
,.cover_sticker
and.banner
awe nyow optionyaw and may w-wetuwnNone
. (#912)AuditLogEntry.user
may nyow be anObject
if the u-usew cannyot be found, pawticuwawwy in entwies fwom theon_audit_log_entry_create()
event. (#920)
Nyew Featuwes¶
Add
GuildBuilder
andClient.guild_builder()
fow fuww cuvwage of the guiwd cweation endpoint. (#578)Suppowt wegex within automod using
AutoModTriggerMetadata.regex_patterns
. (#794)Add
File.closed
a-andFile.bytes_length
pwopewties. (#839)- Add suppowt fow NSFW appwication commands. (#865)
Add
nsfw
pawametew to c-c-command constwuctows and decowatows.
A-A-Add
UserFlags.active_developer
andPublicUserFlags.active_developer
. (#866)Adds weasons/descwiptions to
ConnectionClosed
ewwows. (#873)Update
AutoModTriggerMetadata
uvwwoads to awwow passingallow_list
to keywowd-based wuwes. (#877)The
PublicUserFlags.discord_certified_moderator
is n-nyow an awias ofPublicUserFlags.moderator_programs_alumni
. (#883)Add
ForumChannel.default_layout
, anddefault_layout
pawametew to channyew edit methods. (#885, #903)Adds
Event
enyumewation to use inClient.wait_for()
,disnake.ext.commands.Bot.wait_for()
and indisnake.ext.commands.Bot.listen()
decowatow. (#895)Add nyew
MessageType.interaction_premium_upsell
andMessageType.guild_application_premium_subscription
message types. (#905)- Add appwication wowe connyection featuwes. (#906)
Add
ApplicationRoleConnectionMetadata
andApplicationRoleConnectionMetadataType
types.Add
Client.fetch_role_connection_metadata
andClient.edit_role_connection_metadata
methods.Add
RoleTags.is_linked_role
andAppInfo.role_connections_verification_url
attwibutes.
Add
StickerFormatType.gif
. (#910)Add suppowt fow the
on_audit_log_entry_create()
gateway event, and addIntents.moderation
intent.Intents.bans
is nyow an awias ofIntents.moderation
. (#915)Add fawwback to
Object
fowAuditLogEntry.user
(#920)
Bug F-F-Fixes¶
[ext.commands] Fix
help_command
pawametew annyotations to awwowNone
vawue. (#849)Fix usew cache memowy weak whewe unyused objects wewen’t being evicted (pwovided that
Intents.members
i-i-is enyabwed). (#858)Fix
Message.author.public_flags
awways being0
when the membew cache is disabwed. (#870)Expowt missing
ThreadWithMessage
cwass. (#879)Add pweviouswy missing
applied_tags
p-p-pawametew to awwForumChannel.create_thread()
uvwwoads. (#880)Fix convewsion o-of custom emoji stwings (e.g.
<:this:934852112221872198>
) i-inMessage.add_reaction()
and simiwaw methods to mowe stwictwy adhewe to the API documentation. (#887)Fix
Client.delete_guild_command()
nyot updating the wocaw command cache. (#907)Fix ewwows when twying to desewiawize stickews with unknyown fowmats. (#911)
Make
StickerPack.cover_sticker_id
,.cover_sticker
and.banner
optionyaw. (#912)Fix handwing of
ECONNRESET
ewwows on Winyux. (#921)
Documentation¶
E-E-Enyabwe OpenSeawch, awwowing e-e-easy integwation of t-t-the seawch functionyawity into bwowsews. (#859)
Wemuv documentation wegawding pwivate thweads wequiwing boosts. (#872)
Update
AutoModTriggerMetadata
fiewd wimits. (#877)
Miscewwanyeous¶
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¶
Fix
Message.author.public_flags
awways being0
when the membew cache is disabwed. (#870)Expowt missing
ThreadWithMessage
cwass. (#879)Fix
Client.delete_guild_command()
nyot updating the wocaw command cache. (#907)Fix ewwows when twying to desewiawize stickews with unknyown fowmats. (#911)
v2.7.0¶
This wewease comes with suppowt fow python 3.11 and nyew sewects.
Bweaking Changes¶
Pwopewwy document that
Message.system_content
may wetuwnNone
. Whiwe this is documented as a bweaking change, this function awways couwd wetuwnNone
if the message type was nyot wecognyised. (#766)Wenyame
InteractionDataResolved.get()
toget_by_id()
. (#814)
Depwecations¶
Wenyame
ApplicationCommandInteractionDataResolved
toInteractionDataResolved
. (#814)[ext.commands] Depwecate the
sync_commands
,sync_commands_debug
, andsync_commands_on_cog_unload
pawametews ofBot
andInteractionBot
. These have been wepwaced with thecommand_sync_flags
pawametew which takes aCommandSyncFlags
instance. (#806)
Nyew Featuwes¶
- Update
Message.system_content
to be accuwate to the cwient as of Octobew 2022. (#766) This awso pwopewwy documents that it is possibwe to wetuwn
None
.
- Update
Add type hints to aww fwag constwuctows, nyow suppowting t-t-type-checking fow cweating fwag cwasses (e.g.
Intents(members=True)
) which used to be untyped. (#778)Add
GuildScheduledEvent.start()
,.end
a-and.cancel
showtcuts. (#781)Impwuv the cwi, awwowing the usage of
ext.commands.InteractionBot
,ext.commands.AutoShardedInteractionBot
. (#791)- Add nyew sewect menyu componyents. (#800, #803)
Add nyew
ComponentType
vawues.Add
UserSelectMenu
,RoleSelectMenu
,MentionableSelectMenu
,ChannelSelectMenu
componyents.A-Add
ui.UserSelect
,ui.RoleSelect
,ui.MentionableSelect
,ui.ChannelSelect
UI types.Add
ui.user_select()
,ui.role_select()
,ui.mentionable_select()
,ui.channel_select()
decowatows.Add
ui.ActionRow.add_user_select()
,add_role_select()
,add_mentionable_select()
,add_channel_select()
- Wenyamed stwing sewect types fow cwawity (pwevious nyames wiww continyue to wowk):
SelectMenu
->StringSelectMenu
ui.Select
->ui.StringSelect
ui.select()
->ui.string_select()
ui.ActionRow.add_select()
->ui.ActionRow.add_string_select()
Add
MessageInteraction.resolved_values
andMessageInteractionData.resolved
.
Suppowt
delete_after
pawametew when sending ephemewaw intewaction wesponses. (#816)Awwow
slowmode_delay
pawametew ofForumChannel.create_thread()
to be optionyaw. (#822)Add
suppress_embeds
pawametew toInteraction.edit_original_response()
andInteractionMessage.edit()
. (#832)[ext.commands] Add
CommandSyncFlags
to pwovide sync configuwation toBot
a-andInteractionBot
(and theiw autoshawded vawiants) ascommand_sync_flags
. (#265, #433, #468, #806)
Bug Fixes¶
Add the missing attwibutes fow
PermissionOverwrite
:use_application_commands
anduse_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 thedelete_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)
Add a-a nyote wawnying mentionying that using a
disnake.File
object as fiwe kwawg makes adisnake.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¶
v2.6.3¶
This maintainyence wewease c-contains backpowts fwom v2.8.0.
Bug Fixes¶
Fix
Message.author.public_flags
awways being0
when the membew cache is disabwed. (#870)Expowt missing
ThreadWithMessage
c-c-cwass. (#879)Fix
Client.delete_guild_command()
nyot updating the wocaw command cache. (#907)Fix ewwows when twying to desewiawize s-s-stickews with unknyown fowmats. (#911)
v2.6.2¶
This maintainyence wewease contains backpowts fwom v2.7.0.
Bug F-Fixes¶
Fix cweation of thweads i-in text channyews without
Permissions.manage_threads
. (#818)Fix off-by-onye ewwow in
AutoModKeywordPresets
vawues. (#820)[ext.commands] Fix a case w-w-whewe optionyaw vawiadic awguments couwd have infinyite woops in pawsing depending on the usew input. (#825)
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 thedelete_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¶
- Update
Client
cwasses such that theiw inyitiawization kwawgs awe expwicitwy stated and typehinted. (#371) Wepwaced
**kwargs
/**options
with expwicit keywowd a-awguments fow t-the__init__
methods ofClient
,ext.commands.Bot
,ext.commands.InteractionBot
, awwAutoSharded*
vawiants, and aww wewevant pawent cwasses.
- Update
Caww nyew
disnake.on_gateway_error()
instead of wetting exceptions p-pwopagate that occuwwed whiwe desewiawizing a weceived gateway event. (#401)- Wewowk
Embed
intewnyaws. (#435) Embed.set_footer()
nyow wequiwes thetext
pawametew.Embed.type
is nyow optionyaw, awthough this couwd pweviouswy beEmbed.Empty
.EmptyEmbed
andEmbed.Empty
awe depwecated in favow ofNone
, have been wemuvd fwom the documentation, and wiww wesuwt in type-checking ewwows.
- Wewowk
- Wefactow
ui.ActionRow
with compwete typings. (#462) ui.ActionRow.children
nyow wetuwns an immutabweSequence
instead of alist
.
- Wefactow
W-W-Wemuv
InvalidArgument
and wepwace it withTypeError
a-andValueError
. (#471)Wenyame
channel_id
pawametew tochannel
onGuild.create_scheduled_event
andGuildScheduledEvent.edit()
. (#548, #590)Waise
TypeError
instead ofValueError
inGuildScheduledEvent
vawidation. (#560)Assume the wocaw timezonye instead of UTC when pwoviding nyaive datetimes to scheduwed event wewated methods. (#579)
- Update
ModalInteraction
typings. (#583) ModalInteraction.walk_components
is wepwaced byModalInteraction.walk_raw_components()
.
- Update
Change the defauwt of the
ignore_timeout
pawametew fow awwpermissions_for
methods toFalse
. (#672)- Update activity attwibutes to match API types. (#685)
M-M-Make
Spotify.start
,Spotify.end
,Spotify.duration
optionyaw.Wemuv
Activity.timestamps
, vawues awe accessibwe thwoughActivity.start
,Activity.end
.Change type of
Activity.buttons
to Wist[str
].
Wemuv
WidgetMember.nick
;WidgetMember.name
contains the membew’s nyicknyame, if set. (#736)[ext.commands] Change
has_permissions
andbot_has_permissions
checks to take timeouts into considewation. (#318, #672)[ext.commands] Change
commands.register_injection
to nyow wetuwn an instance o-ofInjection
. (#669)- [ext.commands] Changed pawametews of
SubCommand
andSubCommandGroup
to nyow wequiwe theiw pawent command. (#759) This onwy affects code that cweates an instance of SubCommand ow SubCommandGwoup manyuawwy by cawwing theiw constwuctows.
- [ext.commands] Changed pawametews of
[ext.tasks] Change
ext.tasks.Loop
to use keywowd-onwy pawametews. (#655)
Depwecations¶
EmptyEmbed
andEmbed.Empty
awe depwecated in favow ofNone
, have been wemuvd fwom the documentation, and wiww wesuwt in type-checking ewwows. (#435, #768)The
delete_message_days
pawametew ofGuild.ban()
andMember.ban()
is depwecated in favouw ofclean_history_duration
. (#659)[e-e-ext.commands] Using
command_prefix=None
withBot
is nyow depwecated in favouw ofInteractionBot
. (#689)
Nyew Featuwes¶
Add custom type suppowt fow
disnake.ui.button()
anddisnake.ui.select()
decowatows usingcls
pawametew. (#281)Add
disnake.on_gateway_error()
,Client.on_gateway_error()
andenable_gateway_error_handler
cwient pawametew. (#401)- Update channyew edit method annyotations. (#418)
slowmode_delay
anddefault_auto_archive_duration
awe nyow optionyaw.category
may nyow be anyabc.Snowflake
, nyot nyecessawiwy aCategoryChannel
.
- Add nyew
ui.ActionRow
methods:insert_item()
,clear_items()
,remove_item()
,pop()
, as w-weww as anindex
pawametew fowadd_button()
. (#462) Awso suppowt item access/dewetion thwough
row[i]
.
- Add nyew
Expose the icon and wecipient data fow
Invite
s whose tawget is a channyew of t-t-typeChannelType.group
. (#498)- Impwement auto m-m-modewation. (#530, #698, #757)
Nyew types:
AutoModAction
,AutoModTriggerMetadata
,AutoModRule
,AutoModActionExecution
Nyew enyums:
AutoModTriggerType
,AutoModEventType
,AutoModActionType
Nyew fwags:
AutoModKeywordPresets
Nyew methods:
Guild.create_automod_rule()
,Guild.fetch_automod_rule()
,Guild.fetch_automod_rules()
Nyew intents:
Intents.automod_configuration
,Intents.automod_execution
(+Intents.automod
showtcut fow both)Nyew events:
on_automod_rule_create()
,on_automod_rule_update()
,on_automod_rule_delete()
,on_automod_action_execution()
+ aww the wewevant
AuditLogEntry
andAuditLogChanges
fiewds.
- E-Expose additionyaw pwovided o-objects by Discowd in audit wog handwing. (#532)
Awso adds
PartialIntegration
, and anintegration
attwibute onAuditLogEntry.extra
w-when the type isAuditLogAction.application_command_permission_update
.
Add
Webhook.application_id
fow accessing the I-I-ID of the a-app that cweated the webhook, if any. (#534)- Use
SessionStartLimit.remaining
when attempting to connyect to Discowd. (#537) Nyow waises
SessionStartLimitReached
if t-thewe awe nyot enyough wemainying stawts to stawt the cwient.
- Use
Add muwtipwe convewtews f-fow pweviouswy undocumented fiewds fow audit wogs. (#546)
AuditLogDiff
can nyow have the fowwowing attwibutes with the specified types:AuditLogDiff.unicode_emoji
, used fow wowe icons, was wenyamed toAuditLogDiff.emoji
.Impwement
ChannelFlags
on aww channyew types. (#547)Make aww *IntewactionData datacwasses dicts (
MessageInteractionData
,ApplicationCommandInteractionData
, and s-s-so on). (#549)Add suppowt fow
Webhook
inForumChannel
instances. (#550)A-A-Add
GuildScheduledEvent.created_at
andGuildScheduledEvent.url
pwopewties. (#561)Add the
Embed.check_limits()
method to check if an Embed wouwd be wejected fwom Discowd. (#567)Add
bitrate
pawametew toGuild.create_stage_channel()
. (#571)Add
Guild.edit_mfa_level()
fow modifying the guiwd’s MFA wevew. (#574)Add the
slowmode_delay
pawametew toGuild.create_voice_channel()
. (#582)Add the
Interaction.app_permissions
pwopewty, which shows the app pewmissions in the channyew. (#586)Awwow
entity_type
pawametewGuild.create_scheduled_event
to be missing. (#590)Add
min_length
andmax_length
suppowt toOption
andext.commands.Param
. (#593)Add
AllowedMentions.from_message
fow constwucting a-a-an awwowed mentions object fwom aMessage
. (#603)- Add suppowt of mowe opewatows to aww
Flag
cwasses. This w-w-wist incwudesIntents
a-andPermissions
. (#605, #615, #616) &
,|
,^
, and~
bitwise opewatow suppowt.<
,<=
,>
, and>=
compawsion opewatow suppowt.Suppowt
|
opewatows between fwag instances and fwag vawues.Suppowt
~
opewatow on fwag vawues, which cweate a fwag instance with aww except this specific fwag enyabwed.Suppowt
|
opewatows between fwag vawues which cweate a fwag instance with both fwag vawues enyabwed.
- Add suppowt of mowe opewatows to aww
Suppowt passing waw integew v-v-vawue to
Intents
c-c-constwuctow. (#613)A-A-Add
GuildScheduledEventStatus.cancelled
as an awias fowcanceled
. (#630)Add
on_raw_member_remove()
andon_raw_member_update()
events, with theRawGuildMemberRemoveEvent
modew. (#638)Add
Thread.message_count
,Thread.total_message_sent
andMessage.position
attwibutes. (#640)Add s-suppowt fow setting
ChannelFlags
diwectwy when editing a channyew ow thwead. (#642)Add
ApplicationFlags.application_command_badge
fwag which shows whethew an appwication has at w-weast onye gwobawwy wegistewed a-appwication command. (#649)Add suppowt fow
Interaction.data
which guawantees that evewy subcwass ofInteraction
has thedata
attwibute. (#654)Add
clean_history_duration
pawametew toGuild.ban()
andMember.ban()
. (#659)Add
Game.assets
. (#685)Add pewmission typings to aww methods that take pewmissions diwectwy, fow exampwe
disnake.abc.GuildChannel.set_permissions()
anddisnake.ext.commands.bot_has_permissions()
to nyame a f-f-few. (#708)Add
GatewayParams
fow configuwing gateway connyection pawametews (e.g. disabwing compwession). (#709)Add
resume_gateway_url
handwing to gateway/websocket wesume fwow. (#709, #769)Add suppowt fow modifying the
INVITES_DISABLED
g-guiwd featuwe usingGuild.edit()
. (#718)- Impwement wemainying fowum channyew featuwes. (#724)
Add
ForumTag
datacwass.Add
ForumChannel.get_tag()
,ForumChannel.get_tag_by_name()
,Thread.add_tags()
andThread.remove_tags()
.Add
ForumChannel.default_thread_slowmode_delay
,ForumChannel.default_reaction
, andForumChannel.default_sort_order
.Nyew audit wog fiewds fow the abuv featuwes.
Add
BotIntegration.scopes
. (#729)Wetuwn the
disnake.ui.View
instance fwomView.add_item
,View.remove_item
andView.clear_items
to awwow fow fwuent-stywe chainying. (#733)Add
Widget.presence_count
. (#736)Add
InteractionResponse.type
, which contains the type of the wesponse made, if any. (#737)- Add awiases to the
original_message
methods. (#738)
- Add awiases to the
- Change
ForumChannel.create_thread()
to nyot wequiwe thecontent
pawametew to be pwovided. (#739) Wike
TextChannel.send()
, at weast onye ofcontent
,embed
/embeds
,file
/files
,stickers
,components
, owview
must be pwovided.
- Change
- Wetuwn the
disnake.ui.ActionRow
instance on muwtipwe methods to awwow fow fwuent-stywe chainying. (#740) This appwies to
ActionRow.append_item
,ActionRow.insert_item
,ActionRow.add_button
,ActionRow.add_select
,ActionRow.add_text_input
,ActionRow.clear_items
, andActionRow.remove_item
.
- Wetuwn the
Add suppowt fow equawity checks between two
disnake.Embed
s. (#742)Add
Permissions.use_embedded_activities
as an awias fowPermissions.start_embedded_activities
. (#754)Add
Permissions.use_application_commands
as an awias fowPermissions.use_slash_commands
. (#755)Suppowt setting
with_message
pawametew ofInteractionResponse.defer
fow modaw intewactions toFalse
. (#758)- [ext.commands] Add a way to g-g-get the pawent ow woot commands of swash commands. (#277)
[ext.commands] I-I-Intwoduce
commands.String
fow definying stwing option wength wimitations. (#593)[ext.commands] Add suppowt fow Unyion[
User
,Role
] and Unyion[User
,Member
,Role
] annyotations in swash commands. (#595)- [e-ext.commands] Add suppowt fow injected pawametews autocompwetion (#670)
Add
Injection.autocomplete
d-d-decowatowAdd
autocompleters
keywowd-onwy awgument toInjection
,inject
, andregister_injection
[e-ext.tasks] Add suppowt fow subcwassing
ext.tasks.Loop
and using subcwasses inext.tasks.loop()
decowatow. (#655)
Bug Fixes¶
- Update incowwect channyew edit method annyotations. (#418)
Fix
sync_permissions
pawametew type.Wemuv
topic
pawametew fwomStageChannel.edit()
, addbitrate
.
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)
AuditLogDiff.type
objects awe nyo wongew awwaysChannelType
instances.
Dispatch
disnake.on_reaction_remove()
fowThread
i-i-instances. (#536)Update
Guild.bitrate_limit
to use the cowwect vawue fow theVIP_REGIONS
featuwe fwag. (#538)Handwe
ThreadAutoArchiveDuration
instances fowdefault_auto_archive_duration
when editing channyews. (#568)Assume that
None
is an empty channyew nyame and keepchannel.name
a stwing. (#569)Wemuv the
$
pwefix fwomIDENTIFY
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 usingNone
. (#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
waisingKeyError
instead of wetuwnyingNone
, 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-aGuild
. (#705)- Fix invawid widget fiewds. (#736)
Widget.invite_url
andWidget.fetch_invite
awe nyow optionyaw.WidgetMember.avatar
andWidgetMember.activity
nyow wowk pwopewwy and nyo w-wongew awways waise an exception ow wetuwnNone
.
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
andThread.total_message_sent
. (#747)[ext.commands] Handwe
VoiceChannel
incommands.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
andbot_has_permissions
checks to w-w-wowk w-w-with intewations in guiwds that onwy added theapplications.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¶
Add sidebaw-nyavigabwe sub-sections to Event Wefewence section of API Wefewence documentation. (#460)
Wemuv nyotes that gwobaw appwication command wowwout takes up to an houw. (#518)
Update sphinx fwom 4.4.0 to vewsion 5.1, and t-take advantage of n-n-nyew options. (#522, #565)
Update the wequests intewsphinx uww to the nyew uww of the wequests documentation. (#539)
Buiwd an htmwzip vewsion of the d-d-documentation fow downwoading. (#541)
Expand and compwete the attwibute documentation fow
AuditLogDiff
. (#546)Add nyote about cuwwentwy wequiwed cwient uvwwide fow swash wocawisations. (#553)
Westwuctuwe the
examples/
diwectowy, and update + cwean up aww exampwes. (#562, #716)Cwawify vanyity invite handwing in
Guild.invites
. (#576)Cwawify the tawgets o-o-of
Permissions.is_strict_subset()
andPermissions.is_strict_superset()
. (#612)Cwawify when the usew is a
Member
ow aUser
indisnake.on_member_ban()
events. (#623)Update
InteractionReference.name
descwiption, nyow incwudes gwoup and subcommand. (#625, #648)Nyote that
Interaction.channel
may be aPartialMessageable
in inyaccessibwe thweads, in addition to DMs. (#632)Fix the gwammaticaw ewwows in
Guild
channyew pwopewties. (#645)Update fiewds wisted in
on_user_update()
a-andon_member_update()
docs. (#671)Add pweviouswy missing inhewited attwibutes to activity types. (#685)
Add documentation fow the
strict
pawametew toClient.get_or_fetch_user()
andGuild.get_or_fetch_member()
. (#710)Wemuv nyote about appwication command wocawization wequiwing a cwient buiwd uvwwide. (#711)
Change wefewences to pubwic guiwds to wefewence the
COMMUNITY
featuwe instead. (#720)Cwawify
Thread.delete()
cwitewia fow thweads in fowum channyews. (#745)Cwawify behaviow of kwawgs in fwag methods when both a fwag and an awias awe given. (#749)
[e-e-ext.commands] Document t-the
i18n
a-a-attwibute onext.commands.Bot
andext.commands.InteractionBot
cwasses. (#652)[ext.commands] Document
commands.Injection
. (#669)[ext.commands] Impwuv documentation awound using
None
fowBot.command_prefix
. (#689)
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
andsphinxcontrib-towncrier
to manyage changewogs. (#600) U-U-Use
towncrier
fow changewog manyagement.Use
sphinxcontrib-towncrier
to buiwd changewogs fow the in-devewopment documentation.
- Add
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 withtyping_extensions.Self
acwoss the entiwe wibwawy whewe possibwe. (#610)Wemuv the intewnyaw
fill_with_flags
decowatow fow fwags cwasses and use the buiwt inobject.__init_subclass__()
method. (#616, #660)Add
slice
toui.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
todisnake.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 ofui.ActionRow.add_select
to matchui.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¶
Fix cweation of fowum thweads without
Permissions.manage_threads
. (#746)[ext.commands] Fix edge case with pawsing command annyotations that contain a u-unyion of nyon-type objects, w-w-wike
Optional[Literal[1, 2, 3]]
. (#771)
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
incommands.is_nsfw()
. (#536)Dispatch
disnake.on_reaction_remove()
fowThread
instances. (#536)Update
Guild.bitrate_limit
to use the cowwect vawue fow theVIP_REGIONS
featuwe fwag. (#538)Make aww *IntewactionData datacwasses dicts (
MessageInteractionData
,ApplicationCommandInteractionData
, and so on). (#549)Handwe
ThreadAutoArchiveDuration
instances fowdefault_auto_archive_duration
when editing c-c-channyews. (#568)Assume that
None
is an empty channyew nyame and keepchannel.name
a stwing. (#569)Wemuv the
$
pwefix fwomIDENTIFY
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 usingNone
. (#646)
Documentation¶
Wemuv nyotes that gwobaw a-appwication command wowwout takes up to an h-h-houw. (#518)
Update the wequests intewsphinx uww t-to the nyew u-uww of the wequests documentation. (#539)
Cwawify the tawgets of
Permissions.is_strict_subset()
andPermissions.is_strict_superset()
. (#612)Update
InteractionReference.name
descwiption, nyow incwudes gwoup and subcommand. (#625, #648)
v2.5.1¶
Bug Fixes¶
[ext.commands] Fix
autocomplete()
decowatow in cogs (#521)
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
andcommands.guild_permissions
in favow of nyew fiewds/methods - see bewow fow aww nyew changes (#405)TextChannel.create_thread()
nyow wequiwes eithew amessage
ow atype
p-p-pawametew (#355)GuildScheduledEvent.fetch_users()
andGuild.bans()
nyow wetuwn an async itewatow instead of a wist of usews (#428, #442)Guild.audit_logs()
nyo wongew suppowts theoldest_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, seeon_thread_create()
(#445)The voice wegion enyum was wepwaced with a genyewic
VoiceRegion
data cwass (#477)locale
attwibutes awe nyow of typeLocale
instead ofstr
(#439)Invite.revoked
andThread.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-ofui.Item.callback()
can nyo wongew be passed as a kwawg (#311)The
youtube
,awkword
andsketchy_artist
PartyType
s 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 aLargeIntConversionFailure
(#362)
Depwecations¶
Pubwic stages and stage discuvwabiwity awe depwecated and nyo wongew suppowted (#287)
Voice wegions on guiwd wevew awe depwecated and nyo wongew have any effect; they shouwd be set on a pew-channyew basis instead (#357, #374)
Guild.create_integration()
,Integration.delete()
,StreamIntegration.edit()
andStreamIntegration.sync()
can’t be used by bots anymowe a-a-and w-w-wiww be wemuvd in a futuwe vewsion (#361)AppInfo.summary
,PartialAppInfo.summary
andIntegrationApplication.summary
awe depwecated, use.description
instead (#369)The
suppress
p-pawametew fow edit methods has been depwecated in favow ofsuppress_embeds
, with unchanged functionyawity (#474)
Nyew Featuwes¶
- Suppowt API v10 (#353)
Nyew intent:
Intents.message_content
[e-e-ext.commands] Nyew wawnying:
MessageContentPrefixWarning
- Add fowum channyews (#448, #479, #504, #512)
Add
ForumChannel
Add
CategoryChannel.create_forum_channel
,Guild.create_forum_channel
A-A-Add
pinned
pawametew toThread.edit()
Add
Permissions.create_forum_threads
, awias ofsend_messages
- Add appwication command wocawizations, see Wocawizations (#269)
M-Most
name
anddescription
pawametews nyow awso accept aLocalized
objectUpdate docstwing pawsing to accommodate fow wocawizations
Add
Client.i18n
Add
localization_provider
andstrict_localization
pawametews toClient
Add
with_localizations
p-pawametew toClient.fetch_global_commands()
,Client.fetch_guild_commands()
Add wocawization exampwe
- Suppowt pewmissions v2, see Pewmissions (#405)
- Bweaking changes:
Wemuv suppowt fow
default_permission
Wemuv
GuildApplicationCommandPermissions.edit()
,PartialGuildApplicationCommandPermissions
,UnresolvedGuildApplicationCommandPermissions
Wemuv
Client.edit_command_permissions()
,Client.bulk_edit_command_permissions()
,Client.edit_command_permissions()
,Client.edit_command_permissions()
Wemuv
Guild.get_command_permissions()
,Guild.edit_command_permissions()
,Guild.bulk_edit_command_permissions()
Update behaviow of
GuildCommandInteraction
annyotation to automaticawwy setdm_permission=False
instead of adding a wocaw check, wemuv suppowt fow subcommandsAdd
ApplicationCommandPermissionType
enyum, change type ofApplicationCommandPermissions.type
to suppowt channyew tawgets[ext.commands] Wemuv
guild_permissions()
decowatow[ext.commands] Wemuv
sync_permissions
pawametew fwomBot
- Nyew featuwes:
Add
dm_permission
anddefault_member_permissions
pawametews to appwication command objects and decowatowsAdd
dm_permission
,default_member_permissions
attwibutes toApplicationCommand
andInvokableApplicationCommand
Add
ApplicationCommandPermissions.is_everyone()
a-a-andApplicationCommandPermissions.is_all_channels()
A-Add
AuditLogAction.application_command_permission_update
enyum vawue andAuditLogDiff.command_permissions
[ext.commands] Add
default_member_permissions()
decowatow, awtewnyative to identicawwy nyamed pawametew
- Add g-g-guiwd pweviews (#359)
- Add guiwd widget s-settings and widget uww (#360, #365)
Change
Guild.edit_widget()
w-w-wetuwn type
- Add guiwd wewcome scweens (#339)
Suppowt
List[str]
andDict[str, str]
inoption
pawametew ofdisnake.ui.Select
(#326)Add
Guild.search_members()
(#358, #388)Add
ModalInteraction.message
(#363, #400)Suppowt
InteractionResponse.edit_message()
f-fow modaw intewactions, if modaw w-was sent in wesponse to componyent intewaction (#364, #400)Suppowt
reason
pawametew inMessage.create_thread()
andThread.delete()
(#366)Add
StageInstance.guild_scheduled_event
andStageInstance.guild_scheduled_event_id
(#394)Add
SessionStartLimit
andClient.session_start_limit
(#402)Awwow passing asset types fow most image pawametews, in addition to
bytes
(#415)Update
GuildScheduledEvent.fetch_users()
andGuild.bans()
to be async itewatows suppowting paginyation (#428, #442)Add
AuditLogDiff.image
fow scheduwed event images (#432)Add
notify_everyone
pawametew toStageChannel.create_instance()
(#440)Add
to_file()
method to assets, emojis, stickews (#443, #475)Add
on_thread_create()
e-e-event (#445)Suppowt
reason
pawametew inThread.edit()
(#454)A-A-Add
default_auto_archive_duration
pawametew toGuild.create_text_channel()
, addnsfw
pawametew toGuild.create_voice_channel()
(#456)Awwow pwoviding
attachments=None
to cweaw attachments when editing a message (#457)Add
__repr__
methods to intewaction data types (#458)Add
VoiceChannel.delete_messages()
,VoiceChannel.purge()
,VoiceChannel.webhooks()
,VoiceChannel.create_webhook()
, and impwuvVoiceChannel.permissions_for()
(#461)Add
AppInfo.tags
,AppInfo.install_params
,AppInfo.custom_install_url
(#463)Add
TextChannel.last_pin_timestamp
,DMChannel.last_pin_timestamp
,Thread.last_pin_timestamp
(#464)Add tempowawy wowkawound f-f-fow setting API vewsion to avoid message content intent wequiwement untiw deadwinye (#467)
Add
Interaction.expires_at
andInteraction.is_expired
, automaticawwy faww back to message edit/dewete if intewaction expiwed (#469)Add
suppress_embeds
pawametew to message send methods (#474)Add
VoiceRegion
(wepwacing v-voice wegion enyum),Client.fetch_voice_regions()
,Guild.fetch_voice_regions()
(#477)Add
Member.role_icon
pwopewty (#485)Add debug wogging of webhook wequest/wesponse data (#486)
Add
on_raw_thread_delete()
,on_raw_thread_member_remove()
andon_raw_thread_update()
events (#495)Suppowt cweating nyews channyews using
Guild.create_text_channel()
(#497)Add
Guild.vanity_url_code
, add option toGuild.vanity_invite()
to use cached invite code (#502)Add
Message.application_id
(#513)[ext.commands] A-A-Add
GuildScheduledEventConverter
andGuildScheduledEventNotFound
(#376)[ext.commands] Add
extras
to a-a-appwication commands (#483)[ext.commands] Add
slash_command_attrs
,user_command_attrs
andmessage_command_attrs
Cog
pawametews (#501)
Bug Fixes¶
Impwuv componyents exception message (#352)
Use pwopew HTTP method fow joinying thweads, wemuv unyused methods (#356)
Fix missing
create_public_threads
pewmission inPermissions.private_channel
(#373)Impwuv
abc.Messageable.send()
typing and fix annyotations o-o-of HTTP methods (#378)Fix shadowed
disnake.message
moduwe (#380)Fix missing/incowwect
__slots__
(#381)Fix wowe icon/emoji editing (#403)
W-Wemuv cached scheduwed events if associated channyew was d-d-deweted (#406)
Update some types/pawametews of wowes, scheduwed events and voice s-s-states (#407)
Awwow
content
pawametews i-in send/edit methods to be positionyaw (#411)Fix gateway watewimitew being too stwict (#413)
Fix caching of stage instances andd scheduwed events (#416)
Impwuv
PartialMessageable
channyew handwing (#426)Use
asyncio.iscoroutinefunction()
instead o-ofinspect.iscoroutinefunction()
(#427)Don’t automaticawwy e-enyabwe wogging if autowewoad is enyabwed (#431)
Suppowt embed images in
InteractionResponse.edit_message()
(#466)Fix
after
pawametew ofGuild.audit_logs()
(#473)Add
__str__
toApplicationCommand
, impwuv sync debug output (#478)Don’t wequiwe a
topic
when cweating a stage channyew (#480)Update and add missing uvwwoads (#482)
Make
disnake.types.interactions
impowtabwe at wuntime (#493)Waise
TypeError
instead of siwentwy wetuwnying when twying t-t-to defew an unsuppowted intewaction type (#505)Fix deway of
after
cawwback inAudioPlayer
when stopping (#508)[ext.commands] Make convewsion exceptions in swash commands pwopagate cweanwy as documented (#362)
[ext.commands] Fix
clean_content
convewtew (#396)[ext.commands] Fix usage of custom convewtews with
Param
(#398)[ext.commands] Suppowt intewactions in
UserConverter
,MemberConverter
(#429)[ext.commands] Fix unwoading o-o-of wistenyews with custom nyames (#444)
[ext.commands] Fix pawametew nyame confwicts in swash commands (#503)
Documentation¶
Disabwe m-m-mathjax in d-d-documentation t-t-to impwuv woading times (#370)
Update wetuwn type of
Guild.create_template()
(#372)Add documentation fow
GuildCommandInteraction
,UserCommandInteraction
, andMessageCommandInteraction
(#374)Fix sevewaw bugs of wedesign (#377)
Update bwoken wefewences (#419)
Fix dupwicate seawch wesuwts, impwuv scowing (#423)
Add seawch hotkeys
ctrl+k
,/
,s
(#434)Fix stwing escape wawnyings (#436)
Add sevewaw pweviouswy missing documentation entwies (#446, #470)
Add autocompwete decowatow e-e-exampwe (#472)
Update docs o-o-of ABCs to mention subcwasses (#506)
Update
on_member_update()
documentation to incwude nyew and futuwe attwibutes (#510)Fix miscewwanyeous issues, impwuv fowmatting (#511)
Miscewwanyeous¶
v2.4.1¶
This wewease is a bugfix wewease with backpowts fwom v2.5.0 up to v2.5.2.
Bug Fixes¶
Fix missing
create_public_threads
pewmission inPermissions.private_channel
(#373)Fix wowe icon/emoji editing (#403)
Wemuv cached scheduwed events if associated channyew was deweted (#406)
Update some types/pawametews of wowes, scheduwed events and voice states (#407)
Awwow
content
pawametews in send/edit methods to be positionyaw (#411)Fix gateway watewimitew b-b-being too stwict (#413)
Fix caching of stage instances andd scheduwed events (#416)
Impwuv
PartialMessageable
channyew handwing (#426)Fix deway o-of
after
cawwback inAudioPlayer
w-w-when stopping (#508)Change the defauwt guiwd
GuildSticker
wimit to 5. (#531)Dispatch
disnake.on_reaction_remove()
fowThread
instances. (#536)Update
Guild.bitrate_limit
t-to use the cowwect vawue fow theVIP_REGIONS
featuwe fwag. (#538)Wemuv the
$
pwefix fwomIDENTIFY
paywoad pwopewties. (#572)Fix opus function cawws on awm64 macOS. (#620)
Impwuv channyew/guiwd fawwback in wesowved intewaction data, using
PartialMessageable
fow unhandwed/unknyown channyews instead o-of usingNone
. (#646)[ext.commands] Fix
clean_content
convewtew (#396)[ext.commands] Suppowt intewactions in
UserConverter
,MemberConverter
(#429)[ext.commands] Fix unwoading of wistenyews with custom nyames (#444)
[ext.commands] Handwe
VoiceChannel
incommands.is_nsfw()
. (#536)
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
- The constwuctow of
Interaction.permissions
nyow wetuwns pwopew pewmission vawues in DMs (#321)The
reason
pawametew fow stickew endpoints inHTTPClient
is nyow kwawg-onwy
Depwecations¶
Nyew Featuwes¶
Add
Interaction.locale
andInteraction.guild_locale
pwopewties to intewactions (#225)Add
ui.ActionRow
andcomponents
kwawg to send methods (#224)- Add
ui.WrappedComponent
as a base cwass fow aww UI componyents (#253) ui.Item
nyow inhewits fwomui.WrappedComponent
. It’s nyo wongew a base cwass fow aww UI componyents.
- Add
- Impwement modaws and text inputs (#253)
Add
TextInput
componyent.Add
ui.Modal
as a high-wevew impwementation of modaws.Add
ui.TextInput
fow modaws. It inhewits fwomui.WrappedComponent
and adds mowe functionyawity o-on top ofTextInput
.Add
InteractionResponse.send_modal()
t-to suppowt n-n-nyew intewaction wesponse t-type.Add
on_modal_submit()
event.
A-A-Add
MessageFlags.failed_to_mention_roles_in_thread
(#238)Use woggew fow appwication command sync debug (#230)
[ext.commands] Impwuv appwication command sync awgowithm (#240)
Use HTTP A-A-API v9 (#250)
[ext.commands] Add
commands.Range
, see Nyumbew Wanges (#237, #276, #316)[ext.commands] Add
Bot.load_extensions
andutils.search_directory()
(#245)[ext.commands] Add
commands.LargeInt
(#264)Add
with_message
pawametew toInteractionResponse.defer()
to suppowt defewwing componyent intewaction wesponses with messages (#248)A-A-Add
Widget.edit()
(#266)Add the abiwity to specify a defauwt cowow fow embeds (#203)
Add
PartialInviteGuild.nsfw_level
andPartialInviteGuild.vanity_url_code
(#297)Add
Thread.create_timestamp
(#285)Add
Message.thread
(#291)Add
Permissions.events
a-andPermissions.private_channel
, impwuv existing factowy methods (#286, #321)Suppowt images in
GuildScheduledEvent
(#280)Add
PartyType.sketch_heads
andPartyType.ocho
(#306)Interaction.bot
,Interaction.client
,Interaction.channel
andInteraction.channel_id
awe nyo w-w-wongew optionyaw (#279)Suppowt timeouts in
abc.GuildChannel.permissions_for()
and othew channyew types (#289)Suppowt
disnake.Attachment
options in swash commands (#226)Add
attachments
pawametew toInteractionResponse.edit_message()
(#335)Add
Guild.get_or_fetch_members()
with an awiasGuild.getch_members()
(#322).Add
abc.GuildChannel.jump_url
,DMChannel.jump_url
andThread.jump_url
(#319)
Bug Fixes¶
Fix missing suppowt fow
reason
pawametew in some m-m-methods (#266)Impwuv vawidation of swash command and option nyames (#267)
[ext.commands] Fix typing of
ctx
pawametew inConverter
(#292)Fix
Guild.get_command()
n-n-nyevew wetuwnying any c-commands (#333)Wetuwn wist of membews fwom
Guild.chunk()
(#334)Fix handwing of uppewcase swash command nyames (#346)
Fix
permissions
annyotation o-o-ofabc.GuildChannel.set_permissions()
(#349)Fix
tasks.loop
usage with fixed times (#337)
Documentation¶
Miscewwanyeous¶
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¶
[ext.commands] Fix Python 3.10 unyion type annyotations in swash commands (#231)
Fix doubwe
@
when mentionying defauwt wowe (#244)Fix a command sync bug which pwevented wegistewing two appwication commands with the same nyame but diffewent types (#254)
Fix bug when editing a
View
with UWW buttons that wesuwted in therow
attwibute being weset (#252)[ext.commands] Fix
MessageConverter
nyot defauwting to cuwwent channyew if nyo channyew ID specified (#284)Fix attachment descwiptions nyot wowking aftew wecent API change (#241)
Fix incowwect type check in
Guild.create_scheduled_event()
u-usingStagePrivacyLevel
instead ofGuildScheduledEventPrivacyLevel
(#263)[ext.commands] Fix exceptions that occuwwed when using a
Union
i-in a swash command pawametew annyotation[ext.commands] Fix dynyamic command coowdowns (#320)
Fix type-checking of
guild_ids
/test_guilds
pawametews which couwd bweak appwication command caching (#300, #325)Fix
Guild.create_sticker()
nyot wowking when nyo descwiption was pwovided (#328)
Documentation¶
Fix
guild_permissions()
documentationFix missing dwopdown icon (#235)
Miscewwanyeous¶
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 aVoiceChannel
, 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 wetuwnSubCommandGroup
owSubCommand
instances, see documentationdisnake.types.ThreadArchiveDuration
is nyowThreadArchiveDurationLiteral
, to avoid confusion with the nyewThreadArchiveDuration
enyum
Depwecations¶
The
role_ids
anduser_ids
pawametews fowguild_permissions
awe nyowroles
andusers
w-wespectivewy; the owd pawametew nyames wiww be wemuvd in a futuwe vewsion
Nyew Featuwes¶
- Add guiwd scheduwed events (#151, #217)
Nyew intent:
Intents.guild_scheduled_events
(enyabwed by defauwt)- Invite additions/changes
guild_scheduled_event
pawametew onabc.GuildChannel.create_invite()
guild_scheduled_event_id
pawametew onClient.fetch_invite()
Incwude
event
UWW p-p-pawametew inInvite.url
if appwicabweSuppowt pawsing scheduwed event ID fwom invite UWWs
- Add guiwd timeouts (#161, #221, #223)
timeout
pawametew onMember.edit()
Nyew pewmission:
Permissions.moderate_members
- Add pwewiminyawy suppowt fow text-in-voice (#162, #177)
Many methods/pwopewties that pweviouswy wetuwnyed a
TextChannel
can nyow awso wetuwn aVoiceChannel
, which shawes many but nyot aww of its methods- Impowtant nyotes:
This featuwe is onwy avaiwabwe i-in a vewy wimited nyumbew of sewvews at the time of wwiting this, and the API is stiww being devewoped; thewefowe, expect changes in the futuwe
T-Text-in-voice cuwwentwy does nyot suppowt these t-t-text channyew featuwes (nyote: this is nyot guawanteed t-to be an exhaustive wist): thweads, webhooks, nsfw fwags, swowmode
The
nsfw
andslowmode_delay
vawues/pawametews awe cuwwentwy nyot suppowted by the A-API and awe stiww TBDPinnyed messages awe c-c-cuwwentwy nyot exposed i-i-in the cwient UI, and whiwe the API fow them wowks, theiw futuwe is uncewtain
VoiceChannel
nyow inhewits fwomabc.Messageable
Nyew
VoiceChannel
pwopewties:.nsfw
,.slowmode_delay
,.last_message_id
,.last_message
Nyew
VoiceChannel
methods:.is_nsfw
,.get_partial_message
nsfw
andslowmode_delay
pawametews fowVoiceChannel.edit()
- [ext.commands] Add pawametew injections (exampwe) (#130)
Add attachment descwiptions (see
File
,Attachment
) (#100)Add
on_raw_typing()
event (#176)Add
Guild.approximate_member_count
andGuild.approximate_presence_count
(avaiwabwe on manyuawwy fetched guiwds) (#139)Add
ThreadArchiveDuration
enyum, containying the cuwwentwy vawid vawues fow the thwead auto-awchive featuwe (#187)[e-e-ext.commands] Add
PermissionsConverter
, which awwows the convewsion of a vawue ow a (wist of) pewmission nyames to a-aPermissions
instance (using a-a-aPermissions
annyotation)A-A-Add
AppInfo.flags
[ext.commands] Add
channel_types
pawametew toParam
/ParamInfo
(#130)Add suppowt fow setting
slowmode_delay
on thwead cweation (TextChannel.create_thread()
,Message.create_thread()
) (#132)Add
invitable
pawametew toTextChannel.create_thread()
(#132)Add
fail_if_not_exists
pawametew toMessage.reply()
(#199, #211)[ext.commands]
Bot.get_slash_command
nyow wowks simiwaw toBot.get_command
, in that it can awso wetuwn subcommands/gwoups fow inputs wike"foo bar"
(#149)Add nyew awiases fow
ApplicationCommandInteraction
:CommandInteraction
,CmdInteraction
,CommandInter
,CmdInter
,AppCommandInteraction
Add a base cwass fow wawnyings emitted by this wibwawy,
DiscordWarning
(#118)Add nyew wawnyings (emitted instead of just using
print
fow wawnyings):ConfigWarning
,SyncWarning
(#118)
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()
andui.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 useorjson
if avaiwabwe (#184)Fix
Message.channel
type beingDMChannel
fow ephemewaw messages inon_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¶
Muv documentation to h-h-https://docs.disnyake.dev/
Update Vewsion Guawantees (#200)
Cwawify
Interaction.original_message()
documentation wegawding d-diffewent wesponse types (#140)Cwawify
Interaction.send()
documentation (#188)Wediwect seawches fow
color
tocolour
(#153)Add documentation fow nyew guiwd featuwe vawues (#148)
- Add documentation fow sevewaw methods/pwopewties: (#153)
Fix incowwect type fow
Invite.channel
in documentationAdd additionyaw infowmation about appwication command sync awgowithm and syncing commands in shawded bots (#205)
Miscewwanyeous¶
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 cawwbacksFix
Select.append_option
nyot waising an ewwow if 25 options have awweady been addedImpwuv c-check fow
options
pawametew on swash commands and s-subcommandsImpwuv pawametew pawsing fow c-c-convewtews
Fix wawnying wewated to nyew option pwopewties
Documentation¶
Update wepositowy winks to nyew owganyization
Fix dupwicate entwies in documentation
Fix incowwect
versionadded
t-t-tagsAdd documentation fow
InteractionBot
andAutoShardedInteractionBot
v2.2.1¶
Bug Fixes¶
Fixed ewwow wewated to guiwd membew count
v-v2.2.0¶
Nyew Featuwes¶
Add kwawg
attachments
to edit methodsAdd kwawgs
file
andfiles
toInteractionResponse.edit_message()
,PartialMessage.edit()
andMessage.edit()
Add kwawg
file
toEmbed.set_image()
andEmbed.set_thumbnail()
Add kwawg
delay
toInteraction.delete_original_message()
andWebhookMessage.delete()
Add kwawg
delete_after
toInteractionResponse.send_message()
andWebhookMessage.send()
[ext.commands] Add
InvokableSlashCommand.autocomplete
(awtewnyative method of adding autocompwete functions)[ext.commands] Add
SubCommand.autocomplete
(awtewnyative method of adding autocompwete functions)[ext.commands] Add
Cog.cog_load
[ext.commands] Ewwow handwews nyow can cancew each othew by wetuwnying
True
v2.1.5¶
Nyew Featuwes¶
Add
UnresolvedGuildApplicationCommandPermissions
Add kwawgs
min_value
andmax_value
inOption
[ext.commands] Add kwawg
min_value
(with awiasesge
,gt
) toParam
[ext.commands] Add kwawg
max_value
(with awiasesle
,lt
) toParam
[e-e-ext.commands] Add kwawg
owner
toguild_permissions
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¶
Add
PartialGuildApplicationCommandPermissions
Add
ApplicationCommandInteraction.filled_options
pwopewtyA-A-Add
on_message_command_completion
[ext.commands] Add
InteractionBot
[ext.commands] A-Add
guild_permissions
[ext.commands] Add kwawgs
sync_commands_on_cog_unload
andsync_permissions
toInteractionBotBase
Bug Fixes¶
Music
default_permission
kwawg in usew / message commandsCommands 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¶
Add i-i-intewaction hiewawchy.
Interaction
is nyow the base cwass fow othew intewaction types, such asApplicationCommandInteraction
andMessageInteraction
.Add intewaction data wwappews:
ApplicationCommandInteractionData
andMessageInteractionData
.Add intewaction data option wwappew:
ApplicationCommandInteractionDataOption
Add
Client.bulk_edit_command_permissions()
Add
Client.edit_command_permissions()
A-A-Add
Client.edit_global_command()
[ext.commands] Suppowt fow swash commands and context menyus.
[ext.commands] Add
InvokableApplicationCommand
- the base cwass fow invokabwe swash commands and context menyus.[ext.commands] Add
InvokableSlashCommand
fow swash command manyagement.[ext.commands] Add
SubCommand
fow swash s-sub-command manyagement.[ext.commands] Add
SubCommandGroup
fow swash sub-command gwoup manyagement.[ext.commands] Add
InvokableUserCommand
fow usew command manyagement (context menyus).[ext.commands] Add
InvokableMessageCommand
fow message command manyagement (context menyus).[ext.commands] Add
ParamInfo
fow wwapping annyotations.[ext.commands] Add
slash_command
fow swash command definyitions.[ext.commands] Add
user_command
fow usew command definyitions (context menyus).[ext.commands] Add
message_command
fow message command definyitions (context menyus).[ext.commands] Add
Param
(with an awiasparam
) in caseParamInfo
causes wintew ewwows.[ext.commands] Add
Bot.slash_command
fow swash command definyitions.[ext.commands] Add
Bot.user_command
fow usew command definyitions (context menyus).[e-ext.commands] Add
Bot.message_command
fow message command definyitions (context menyus).[ext.commands] Add
Bot.after_slash_command_invoke
- a decowatow fow post-invoke hooks fow swash commands.[ext.commands] Add
Bot.after_user_command_invoke
- a decowatow fow post-invoke hooks fow usew commands.[ext.commands] Add
Bot.after_message_command_invoke
- a decowatow fow post-invoke hooks fow message commands.[e-e-ext.commands] Add
Bot.before_slash_command_invoke
- a decowatow fow p-pwe-invoke h-h-hooks fow swash commands.[ext.commands] Add
Bot.before_user_command_invoke
- a decowatow fow pwe-invoke hooks f-f-fow usew commands.[ext.commands] Add
Bot.before_message_command_invoke
- a d-decowatow fow pwe-invoke hooks fow message commands.[ext.commands] A-Add
Bot.get_slash_command
[ext.commands] A-A-Add
Bot.get_user_command
[ext.commands] A-A-Add
Cog.cog_message_command_error
Wegacy Changewog¶
Changewogs fow owdew vewsions (0.x
, 1.x
) can be found on the Wegacy Changewog page.