Skip to content

Conversation

@mifuyutsuki
Copy link
Contributor

@mifuyutsuki mifuyutsuki commented Dec 10, 2025

Pull Request Type

  • Feature addition
  • Bugfix
  • Documentation update
  • Code refactor
  • Tests improvement
  • CI/CD pipeline enhancement
  • Other: [Replace with a description]

Description

Adds and updates some Discord enums in the library. This PR specifically targets enums in interactions.models.discord.enums.

Note: Additions to ComponentType are excluded in this PR pending #1784.

Changes

  • Updated enums/flags with added entries: ApplicationFlags, Permissions (BYPASS_SLOWMODE), CommandType (PRIMARY_ENTRY_POINT), SystemChannelFlags, AuditLogEventType, MemberFlags
  • Updated enums/flags without added entries: InteractionType, ForumLayoutType, Intents
  • Changed names of select enums to match Discord API documentation, e.g. ON_BOARDING_QUESTION_UPDATE -> ONBOARDING_PROMPT_UPDATE
    • Preexisting names now alias to the Discord API name.
  • Edited interactions.client.client to use API names over old library names; the underlying value remains the same
  • Added additional code in ContextMenu to throw on type=CommandType.PRIMARY_ENTRY_POINT

Related Issues

Fixes #1600 (now documented since... September 2024)

Test Scenarios

Python Compatibility

  • I've ensured my code works on Python 3.10.x
  • I've ensured my code works on Python 3.11.x

Checklist

  • I've run the pre-commit code linter over all edited files
  • I've tested my changes on supported Python versions
  • I've added tests for my code, if applicable
  • I've updated / added documentation, where applicable

@mifuyutsuki
Copy link
Contributor Author

After updating my branch to include GUILD_EXPRESSIONS it turns out there's some soundboard gateway events not in the library yet. I'd imagine that being a new PR pending this one.

@silasary silasary merged commit 8bc94e7 into interactions-py:unstable Dec 11, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants