2.4.0 (2025-09-08)
Breaking Changes
- Remove
PREMIUM_REQUIREDresponse support- Use
PREMIUMbutton components instead (#2454)
- Use
Features
- Add
parent_idandlock_permissionstorest.reposition_channels(#2238) - Add support for fetching and editing guild onboarding (
rest.fetch_guild_onboarding,rest.edit_guild_onboarding) (#2337) - Add
PREMIUMbutton support (#2454) - Add
primary_guilduser feature. (#2469) - Add
InteractionCallbackResponseobject that gets returned in the initial response to an interaction (#2479) - Add
PIN_MESSAGESpermission. (#2498) - Add iterator pins feature. (#2501)
- Add
code_verifierfield toauthorize_access_tokenfor PKCE use-cases (#2510) - Further improve ratelimiting to track in-flight requests (#2515)
Bugfixes
- Always send
allowed_mentionswhen editing a message to match functionality that documentation mentions (#2447) - Improve ratelimit handling when starting bot in the middle of a ratelimit window (#2452)
- Fix
OAuth2AuthorizationToken.refresh_tokentypehint beingintinstead ofstr(#2493) - Properly handle ratelimit buckets with fixed periods (#2506)
fetch_guild_inviteswill now return a sequence of invites (no metadata) if you only have theVIEW_AUDIT_LOGpermission (#2509)
Documentation Improvements
- Improve documentation for
GuildReactionDeleteEmojiEventandDMReactionDeleteEmojiEvent(#2450)