v2.8.0
This release comes with support for NSFW application commands,
the on_audit_log_entry_create() event,
and a new Event enum for use with methods like Client.wait_for().
Breaking Changes
StickerPack.cover_sticker_id,.cover_stickerand.bannerare now optional and may returnNone. ( #912 )AuditLogEntry.usermay now be anObjectif the user cannot be found, particularly in entries from theon_audit_log_entry_create()event. ( #920 )
New Features
- Add
GuildBuilderandClient.guild_builder()for full coverage of the guild creation endpoint. ( #578 ) - Support regex within automod using
AutoModTriggerMetadata.regex_patterns. ( #794 ) - Add
File.closedandFile.bytes_lengthproperties. ( #839 ) - Add
TextChannel.default_thread_slowmode_delay. ( #854 ) - Add support for NSFW application commands. ( #865 )
- Add
ApplicationCommand.nsfw. - Add
nsfwparameter to command constructors and decorators.
- Add
- Add
UserFlags.active_developerandPublicUserFlags.active_developer. ( #866 ) - Adds reasons/descriptions to
ConnectionClosederrors. ( #873 ) - Update
AutoModTriggerMetadataoverloads to allow passingallow_listto keyword-based rules. ( #877 ) - The
PublicUserFlags.discord_certified_moderatoris now an alias ofPublicUserFlags.moderator_programs_alumni. ( #883 ) - Add
ForumChannel.default_layout, anddefault_layoutparameter to channel edit methods. ( #885 , #903 ) - Add
Locale.id(Indonesian) locale. ( #890 ) - Adds
Eventenumeration to use inClient.wait_for(),disnake.ext.commands.Bot.wait_for()and indisnake.ext.commands.Bot.listen()decorator. ( #895 ) - Add new
MessageType.interaction_premium_upsellandMessageType.guild_application_premium_subscriptionmessage types. ( #905 ) - Add application role connection features. ( #906 )
- Add
ApplicationRoleConnectionMetadataandApplicationRoleConnectionMetadataTypetypes. - Add
Client.fetch_role_connection_metadataandClient.edit_role_connection_metadatamethods. - Add
RoleTags.is_linked_roleandAppInfo.role_connections_verification_urlattributes.
- Add
- Add
StickerFormatType.gif. ( #910 ) - Add support for the
on_audit_log_entry_create()gateway event, and addIntents.moderationintent.Intents.bansis now an alias ofIntents.moderation. ( #915 ) - Add
flagsproperty toMember. ( #918 ) - Add fallback to
ObjectforAuditLogEntry.user( #920 )
Bug Fixes
- [ ext.commands ] Fix
help_commandparameter annotations to allowNonevalue. ( #849 ) - Fix user cache memory leak where unused objects weren't being evicted (provided that
Intents.membersis enabled). ( #858 ) - Fix
Message.author.public_flagsalways being0when the member cache is disabled. ( #870 ) - Export missing
ThreadWithMessageclass. ( #879 ) - Add previously missing
applied_tagsparameter to allForumChannel.create_thread()overloads. ( #880 ) - Fix conversion of custom emoji strings (e.g.
<:this:934852112221872198>) inMessage.add_reaction()and similar methods to more strictly adhere to the API documentation. ( #887 ) - Fix
Client.delete_guild_command()not updating the local command cache. ( #907 ) - Fix errors when trying to deserialize stickers with unknown formats. ( #911 )
- Make
StickerPack.cover_sticker_id,.cover_stickerand.banneroptional. ( #912 ) - Fix handling of
ECONNRESETerrors on Linux. ( #921 )
Documentation
- Enable OpenSearch, allowing easy integration of the search functionality into browsers. ( #859 )
- Clarify types of optional
Inviteattributes. ( #864 ) - Remove documentation regarding private threads requiring boosts. ( #872 )
- Update
AutoModTriggerMetadatafield limits. ( #877 )
Miscellaneous
Table of Contents