Skip to content

Conversation

Soheab
Copy link
Contributor

@Soheab Soheab commented Sep 29, 2025

Summary

This PR adds the following attributes to Interaction for ease of access and type safety for people that want it:

  • command_id
  • custom_id

Both are from interaction.data and self-explanatory.

They are cached properties so they don’t exist unless used, and when they do, their values stay the same.

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

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.

1 participant