All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning when possible (see our Version Guarantees for more info).
These changes are available on the master branch, but have not yet been released.
- Added new AutoMod trigger metadata properties
regex_patterns,allow_list, andmention_total_limit; and added themention_spamtrigger type. (#1809) - Added missing
imageparameter toGuild.create_scheduled_event()method. (#1831) - Added new message types,
interaction_premium_upsell,stage_start,stage_end,stage_speaker,stage_raise_hand,stage_topic, andguild_application_premium_subscription. (#1852)
2.3.2 - 2022-12-03
- Fixed bridge groups missing the
parentattribute. (#1823)
2.3.2 - 2022-12-03
- Fixed another
AttributeErrorrelating to the newbridge_commandsattribute onext.bridge.Bot. (#1815) - Fixed an
AttributeErrorin select relating to the select type. (#1814) - Fixed
Thread.applied_tagsalways returning an empty list. (#1817)
2.3.1 - 2022-11-27
- Fixed
AttributeErrorrelating to the newbridge_commandsattribute onext.bridge.Bot. (#1802)
2.3.0 - 2022-11-23
- New brief Attribute to BridgeSlashCommand. (#1676)
- Python 3.11 support. (#1680)
- New select types
user,role,mentionable, andchannel- Along with their respective types and shortcut decorators. (#1702) - Added support for age-restricted (NSFW) commands. (#1775)
- New flags:
PublicUserFlags.active_developer&ApplicationFlags.active. (#1776) - Support for new forum features including tags, default slowmode, and default sort order. (#1636)
- Support for new thread attributes
total_message_sentandis_pinned. (#1636) - Added
bridge_commandsattribute toext.bridge.Botfor access to bridge command objects. (#1787) - Updated
Guild.featuresto include new and previously missing features. (#1788)
- Fix bridge.has_permissions. (#1695)
- Fix audit log overwrite type always resulting in
None. (#1716) - Fixed error when using
suppresskwarg insend(). (#1719 & #1723)
get_application_command()type kwarg now defaults toApplicationCommand, so all command types can be retrieved by default. (#1678)get_application_command()now supports retrieving subcommands and subcommand groups. (#1678)
- Removed the guild feature
PRIVATE_THREADSdue to paywall limitation removal. (#1789)
2.2.2 - 2022-10-05
- Fixed
parentattribute of second level subcommands being set to the base level command instead of the direct parent. (#1673)
2.2.1 - 2022-10-05
- New
SlashCommand.qualified_idattribute. (#1672)
- Fixed a
TypeErrorinban()methods related to the newdelete_message_secondsparameter. (#1666) - Fixed broken
cogandparentattributes on commands in cogs. (#1662) - Fixed
SlashCommand.mentionfor subcommands. (#1672)
2.2.0 - 2022-10-02
- New Guild Feature
INVITES_DISABLED. (#1613) suppresskwarg toMessageable.send(). (#1587)proxyandproxy_authparams to many Webhook related methods. (#1655)delete_message_secondsparameter in ban methods. (#1557)- New
View.get_item()method. (#1659) - Permissions support for bridge commands. (#1642)
- New
BridgeCommand.invoke()method. (#1642) - New
raw_mentions,raw_role_mentionsandraw_channel_mentionsfunctions indiscord.utils. (#1658) - New methods
original_response,edit_original_response&delete_original_responseforInteractionobjects. (#1609)
- The
delete_message_daysparameter in ban methods is now deprecated. Please usedelete_message_secondsinstead. (#1557) - The
original_message,edit_original_message&delete_original_messagemethods forInteractionare now deprecated. Please use the respectiveoriginal_response,edit_original_response&delete_original_responsemethods instead. (#1609)
- Various fixes to ext.bridge groups. (#1633 & #1631)
- Fix
VOICE_SERVER_UPDATEerror. (#1624) - Removed unnecessary instance check in autocomplete. (#1643)
- Interaction responses are now passed the respective
proxyandproxy_authparams as defined inClient. (#1655)
2.1.3 - 2022-09-06
- Fix TypeError in
process_application_commands. (#1622)
2.1.2 - 2022-09-06
2.1.1 - 2022-08-25
- Bridge command detection in cogs. (#1592)
2.1.0 - 2022-08-25
- Support for add, sub, union, intersect, and inverse operations on classes inheriting
from
BaseFlags. (#1486) - A
disable_on_timeoutkwarg in theViewconstructor. (#1492) - New
mentionproperty forSlashCommandobjects, allowing a shortcut for the new command markdown syntax. (#1523) - An
app_commands_badgevalue onApplicationFlags. (#1535 and #1553) - A new
fetch_applicationmethod in theClientobject. (#1536) - New
on_check_failureevent method for theViewclass. (#799) - A
set_mfa_requiredmethod toGuild. (#1552) - Support for command groups with bridge commands. (#1496)
- Support for
Attachmenttype options for bridge commands. (#1496) is_appproperty forBridgeContextto better differentiate context types. (#1496)- Support for localization on bridge commands. (#1496)
- A
filter_paramshelper function indiscord.utils. (#1496) - Support for
InteractionMessagevia themessageproperty ofView. (#1492)
- Use
slash_variantandext_variantattributes instead ofget_application_command()andget_ext_command()methods onBridgeCommand. (#1496) - Set
storekwarg default toFalsein load_extension(s) method. (#1520) commands.has_permissions()check now returnsTruein DM channels. (#1577)
- Fix
VoiceChannel/CategoryChanneldata being invalidated onOption._invoke. (#1490) - Fix type issues in options.py (#1473)
- Fix KeyError on AutoModActionExecution when the bot lacks the Message Content Intent. (#1521)
- Large code/documentation cleanup & minor bug fixes. (#1476)
- Fix
Optionwith typestrraising AttributeError whenmin_lengthormax_lengthkwargs are passed. (#1527) - Fix
load_extensionsparameters not being passed through correctly. (#1537) - Fix
SlashCommandGroupdescriptions to use the correct default string. (#1539 and #1586) - Fix Enum type options breaking due to
from_datatype()method & Fix minor typing import. (#1541) - Adjust category and guild
_channelsattributes to work with NoneType positions. (#1530) - Make
SelectOption.emojia property. (#1550) - Improve sticker creation by checking for minimum and maximum length on
nameanddescription. (#1546) - Fix threads created with a base message being set to the wrong
message_reference. (#1551) - Avoid unnecessary call to
sync_commandsduring runtime. (#1563) - Fix bug in
Modal.on_timeout()by usingcustom_idto create timeout task. (#1562) - Respect limit argument in
Guild.bans(). (#1573) - Fix
beforeargument inon_scheduled_event_updateevent always set toNoneby converting ID toint. (#1580) - Fix
__eq__methodApplicationCommandaccidentally comparing to self. (#1585) - Apply
cog_checkmethod toApplicationCommandinvocations. (#1575) - Fix
Interaction.edit_original_message()usingConnectionStateinstead ofInteractionMessageState. (#1565) - Fix required parameters validation error. (#1589)
- Improved fix for application-based bots without the bot scope (#1584)
2.0.1 - 2022-08-16
- Fix for application-based bots without the bot scope (#1568)
2.0.0 - 2022-07-08
- New
newsproperty onTextChannel. (#1370) - New
invisiblekwarg todefer()method. (#1379) - Support for audit log event type 121
APPLICATION_COMMAND_PERMISSION_UPDATE. (#1424) - New
ForumChannelConverter. (#1440) - A shortcut
jump_urlproperty to users. (#1444) - Ability for webhooks to create forum posts. (#1405)
- New
messageproperty toView(#1446) - Support for
error,before_invoke, andafter_invokehandlers onBridgeCommand. (#1411) - New
threadproperty toMessage. (#1447) - A
starting_messageproperty toThread. (#1447) - An
app_permissionsproperty toInteractionandApplicationContext. (#1460) - Support for loading folders in
load_extension, and a new helper functionload_extensions. (#1423) - Support for AutoMod (#1316)
- Support for
min_lengthandmax_lengthkwargs inOption. (#1463) - Native timeout support for
Modal. (#1434)
- Updated to new sticker limit for premium guilds. (#1420)
- Replace deprecated endpoint in
HTTPClient.change_my_nickname. (#1426) - Updated deprecated IDENTIFY packet connection properties. (#1430)
Guild.regionattribute (Deprecated on API, VoiceChannel.rtc_region should be used instead). (#1429)
- Change
guild_onlytodm_permissionin application commandto_dictmethod. (#1368) - Fix
repr(ScheduledEventLocation)raising TypeError. (#1369) - Fix
repr(TextChannel)raising AttributeError. (#1370) - Fix application command validation. (#1372)
- Fix scheduled event
coverproperty raising AttributeError. (#1381) - Fix
SlashCommandGrouptreating optional arguments as required. (#1386) - Fix
remove_application_commandnot always removing commands. (#1391) - Fix busy-loop in
DecodeManagerwhen decode queue is empty, causing 100% CPU consumption. (#1395) - Fix incorrect activities and permissions on
InteractionandOptionobjects. (#1365) - Converted PartialMember
deafandmutefrom str annotation (incorrect) to bool annotation. (#1424) - Use
PUTinstead ofPOSTinHTTPClient.join_thread. (#1426) - Fix enum options not setting
input_typeto a SlashCommandOptionType. (#1428) - Fixed TypeError when using thread options. (#1427)
- Allow voice channels in PartialMessage. (#1441)
- Fixed
AuditLogAction.target_typefor application command permission updates. (#1445) - Fix bridge commands to ignore the ephemeral kwarg. (#1453)
- Update
thread.membersonthread.fetch_members. (#1464) - Fix error when discord doesn't send the
app_permissionsdata inInteraction. (#1467) - Fix AttributeError when voice client
play()function isn't completed yet. (#1360)
2.0.0-rc.1 - 2022-05-17
- A
delete_afterkwarg toPaginator.send. (#1245) - New
reasonkwarg toThread.delete_messages. (#1253) - A new
jump_urlproperty to channel and thread objects. (#1254 & #1259) - New
Paginator.edit()method. (#1258) - An
EmbedFieldobject. (#1181) - Option names and descriptions are now validated locally. (#1271)
- Component field limits are now enforced at library-level (#1065 & #1289)
- Support providing option channel types as list. (#1000)
- New
Guild.jump_urlproperty. (#1282) - ext.pages now supports ext.bridge. (#1288)
- Implement
Nonecheck for check_guilds. (#1291) - A debug warning to catch deprecated perms v1 usage until v2 perms are implemented. (#1301)
- A new
filesparameter toPageobject. (#1300) - A
disable_all_itemsandenable_all_itemsmethods toViewobject. (#1199 & #1319) - New
is_nsfwattribute to voice channels. (#1317) - Support for Permissions v2. (#1328)
- Allow using Enum to specify option choices. (#1292)
- The
fileandfilesparameters toInteractionResponse.edit_message(). (#1340) - A
BridgeExtContext.delete()method. (#1348) - Forum channels support. (#1249)
- Implemented
Interaction.to_dict. (#1274) - Support event covers for audit logs. (#1355)
- Removed implicit defer call in
View. (#1260) Optionclass and usage was rewritten. (#1251)descriptionargument ofPageGroupis now optional. (#1330)- Allow
Modal.childrento be set on initialization. (#1311) - Renamed
delete_exitingtodelete_existing(typo). (#1336)
- Fix
PartialMessage.edit()settingviewasNonewhenviewkwarg is not passed. (#1256) - Fix channel parsing in slash command invocations. (#1257)
- Make channel
positionattribute optional. (#1257) - Fix
PaginatorMenuto use interaction routes for updates. (#1267) - Fix
PartialMessage.edit()behavior whencontentisNone. (#1268) - Fix
Paginator.add_menu()andPaginator.add_default_buttons()passingcustom_idtoPaginatorMenu. (#1270) - Fix
process_application_commandscommand not found fallback. (#1262) - Fix interaction response race condition. (#1039)
- Remove voice client when bot disconnects. (#1273)
- Fix conversion exception in ext.bridge. (#1250)
- Context.me return ClientUser when guilds intent is absent. (#1286)
- Updated
Message.edittype hinting overload and removed resulting redundant overloads. (#1299) - Improved validation regex for command names & options. (#1309)
- Correct
Guild.fetch_members()type hints. (#1323) - Multiple fixes and enhancements for
PageGrouphandling. (#1350) - Make
TextChannel._get_channelasync. (#1358)
2.0.0-beta.7 - 2022-04-09
- Fix py3.10 UnionType checks issue. (#1240)