pycord v2.1.0 Release Notes
Release Date: 2022-08-25 // over 1 year ago-
โ Added
- ๐ Support for add, sub, union, intersect, and inverse operations on classes inheriting
from
BaseFlags
. (#1486) - A
disable_on_timeout
kwarg in theView
constructor. (#1492) - ๐ New
mention
property forSlashCommand
objects, allowing a shortcut for the new command markdown syntax. (#1523) - An
app_commands_badge
value onApplicationFlags
. (#1535 and #1553) - A new
fetch_application
method in theClient
object. (#1536) - New
on_check_failure
event method for theView
class. (#799) - A
set_mfa_required
method toGuild
. (#1552) - ๐ Support for command groups with bridge commands. (#1496)
- ๐ Support for
Attachment
type options for bridge commands. (#1496) - ๐
is_app
property forBridgeContext
to better differentiate context types. (#1496) - ๐ Support for localization on bridge commands. (#1496)
- A
filter_params
helper function indiscord.utils
. (#1496) - ๐ Support for
InteractionMessage
via themessage
property ofView
. (#1492)
๐ Changed
- Use
slash_variant
andext_variant
attributes instead ofget_application_command()
andget_ext_command()
methods onBridgeCommand
. (#1496) - 0๏ธโฃ Set
store
kwarg default toFalse
in load_extension(s) method. (#1520) commands.has_permissions()
check now returnsTrue
in DM channels. (#1577)
๐ Fixed
- ๐ Fix
VoiceChannel
/CategoryChannel
data 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
Option
with typestr
raising AttributeError whenmin_length
ormax_length
kwargs are passed. (#1527) - ๐ Fix
load_extensions
parameters not being passed through correctly. (#1537) - ๐ Fix
SlashCommandGroup
descriptions 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
_channels
attributes to work with NoneType positions. (#1530) - ๐ Make
SelectOption.emoji
a property. (#1550) - ๐ Improve sticker creation by checking for minimum and maximum length on
name
anddescription
. (#1546) - ๐ Fix threads created with a base message being set to the wrong
message_reference
. (#1551) - ๐ Avoid unnecessary call to
sync_commands
during runtime. (#1563) - โฑ Fix bug in
Modal.on_timeout()
by usingcustom_id
to create timeout task. (#1562) - Respect limit argument in
Guild.bans()
. (#1573) - โฑ Fix
before
argument inon_scheduled_event_update
event always set toNone
by converting ID toint
. (#1580) - Fix
__eq__
methodApplicationCommand
accidentally comparing to self. (#1585) - Apply
cog_check
method toApplicationCommand
invocations. (#1575) - Fix
Interaction.edit_original_message()
usingConnectionState
instead ofInteractionMessageState
. (#1565) - ๐ Fix required parameters validation error. (#1589)
๐ Security
- ๐ Improved fix for application-based bots without the bot scope (#1584)
- ๐ Support for add, sub, union, intersect, and inverse operations on classes inheriting
from