2.6.0 (2026-08-19)
Breaking Changes
Invite.channel_idis now typed as nullable, fixing the deserialization of friend invites raisingKeyError(#2768)- The
guildparameter ofRESTClient.fetch_membersis now positional-only (#2775)
Features
- Add fetch role member count endpoint (#2585)
- Automatically add components V2 flag for interaction server responses (#2641)
- Add support for the
RATE_LIMITEDgateway event: the shard now logs a warning when an operation gets rate limited and the newShardRateLimitedEventandRequestGuildMembersRateLimitedEventevents are dispatched so applications can react to it (#2644) - Add
BYPASS_SLOWMODEPermission Flag (#2666) - Add
attachment_size_limitparameter toPartialInteractionobject (#2729) - Re-add
nonceargument tocreate_messagecalls, which allows to deduplicate messages in the past few minutes (#2734) - Add super (burst) reaction support to the
Reactionobject, the reaction add/delete events andfetch_reactions_for_emoji(#2737) - Add
RESTClient.edit_applicationto edit the current application, along with newApplicationEventWebhookStatusandApplicationEventWebhookTypeenums andevent_webhooks_url,event_webhooks_statusandevent_webhooks_typesfields onApplication(#2738) - Add the missing
discovery_splash,system_channel_flags,safety_alerts_channel,descriptionandpremium_progress_bar_enabledparameters toRESTClient.edit_guild(#2739) - Add
RESTClient.bulk_ban_usersto ban up to 200 users from a guild at once, along with a newBulkBanResponseobject (#2740) - Add
RESTClient.fetch_sticker_packfor fetching a single sticker pack (#2747) - Add
VoiceChannelStartTimeUpdateEvent, fired when a voice session starts or ends in a voice channel (#2748) - Add support for role colors: the
ColorGradientmodel, theRole.colorsfield, support for passing aColorGradientas thecolorinRESTClient.create_roleandRESTClient.edit_role, and theENHANCED_ROLE_COLORSguild feature (#2749) - Add
RESTClient.fetch_entitlementandRESTClient.consume_entitlement, theEntitlement.is_consumedfield, the missingskusandexclude_deletedparameters toRESTClient.fetch_entitlements, and the missing one-time purchaseEntitlementTypeandSKUTypevalues (#2750) - Add support for requesting ephemeral channel info over the gateway:
GatewayShard.request_channel_info(also available onGatewayBot) and theChannelInfoEventdispatched in response (#2752) - Add
RESTClient.fetch_activity_instancefor fetching a live application activity instance, along with the newActivityInstance,ActivityLocationandActivityLocationKindmodels (#2766) - True-up the invites module:
- Add
Invite.type, along with the newInviteTypeenum - Add
Invite.flags, along with the newInviteFlagsenum - Add
Invite.roles, along with the newInviteRolemodel, andInvite.role_ids - Add
Invite.guild_scheduled_event - Add the missing
scheduled_eventparameter toRESTClient.fetch_invite(#2768)
- Add
- Add the
application_idfield to guild channels, which Discord now documents on the channel object for future guild channel use cases (#2771) - Add the
start_atparameter toRESTClient.fetch_members, allowing the member iteration to start at a given user, snowflake or point in time (#2775) - Add support for gateway capabilities and Discord's upcoming private channel obfuscation:
- New
GatewayCapabilitiesbitfield, declarable through thecapabilitiesargument ofGatewayBotandGatewayShardImpl, including the temporaryGatewayCapabilities.CHANNEL_OBFUSCATIONtesting opt-in - New
ChannelFlag.CHANNEL_OBFUSCATEDflag for detecting obfuscated channels PermissibleGuildChannel.flagsis now available on every guild channel type instead of only forum and media channels (#2785)
- New
Bugfixes
- Properly close http connections when making a request to REST (#2392)
- Use correct route when using
fetch_poll_voters(#2594) - Do not fetch WebResource attachments if they're part of components/embeds (#2687)
- Default to unsigned in
Color.to_bytes, fixing anOverflowErrorwhen converting colors with a red channel of0x80or higher to their natural three bytes (#2764)
Documentation Improvements
- Fix typos in component builder docstrings (#2618)