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 the View constructor. (#1492)
    • ๐Ÿ†• New mention property for SlashCommand objects, allowing a shortcut for the new command markdown syntax. (#1523)
    • An app_commands_badge value on ApplicationFlags. (#1535 and #1553)
    • A new fetch_application method in the Client object. (#1536)
    • New on_check_failure event method for the View class. (#799)
    • A set_mfa_required method to Guild. (#1552)
    • ๐Ÿ‘Œ Support for command groups with bridge commands. (#1496)
    • ๐Ÿ‘Œ Support for Attachment type options for bridge commands. (#1496)
    • ๐Ÿ‘ is_app property for BridgeContext to better differentiate context types. (#1496)
    • ๐Ÿ‘Œ Support for localization on bridge commands. (#1496)
    • A filter_params helper function in discord.utils. (#1496)
    • ๐Ÿ‘Œ Support for InteractionMessage via the message property of View. (#1492)

    ๐Ÿ”„ Changed

    • Use slash_variant and ext_variant attributes instead of get_application_command() and get_ext_command() methods on BridgeCommand. (#1496)
    • 0๏ธโƒฃ Set store kwarg default to False in load_extension(s) method. (#1520)
    • commands.has_permissions() check now returns True in DM channels. (#1577)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix VoiceChannel/CategoryChannel data being invalidated on Option._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 type str raising AttributeError when min_length or max_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 and description. (#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 using custom_id to create timeout task. (#1562)
    • Respect limit argument in Guild.bans(). (#1573)
    • โฑ Fix before argument in on_scheduled_event_update event always set to None by converting ID to int. (#1580)
    • Fix __eq__ method ApplicationCommand accidentally comparing to self. (#1585)
    • Apply cog_check method to ApplicationCommand invocations. (#1575)
    • Fix Interaction.edit_original_message() using ConnectionState instead of InteractionMessageState. (#1565)
    • ๐Ÿ›  Fix required parameters validation error. (#1589)

    ๐Ÿ”’ Security

    • ๐Ÿ‘Œ Improved fix for application-based bots without the bot scope (#1584)