disnake icon indicating copy to clipboard operation
disnake copied to clipboard

feat(message): include member data in `InteractionReference.user`

Open shiftinv opened this issue 1 year ago • 0 comments

Summary

Previously, message.interaction.user was just a User; the d["interaction"]["member"] data present in MESSAGE_CREATE/_EDIT is now used to turn this into a User | Member instead.

Fairly old apidocs change, seems like it was missed back then: https://github.com/discord/discord-api-docs/commit/56cea9462fae6a9b6399e5224b090dc2b68a77e0

Checklist

  • [x] If code changes were made, then they have been tested
    • [x] I have updated the documentation to reflect the changes
    • [x] I have formatted the code properly by running pdm lint
    • [x] I have type-checked the code by running pdm pyright
  • [ ] This PR fixes an issue
  • [x] 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, ...)

shiftinv avatar Feb 24 '24 16:02 shiftinv