If there are reaction buttons, the full InteractionMessage must be fetched when send returns a PartialInteractionMessage.
PartialInteractionMessage does not support add_reactions, so it should not be returned when self.buttons contains elements.
This was working prior to nextcord 2.0.0b1 due to a statement that was intended to be future-proof:
message = await self.interaction.send(ephemeral=self.ephemeral, **kwargs)
return message or await self.interaction.original_message()
As prior to 2.0.0b1, message would always be None, this worked fine. When using nextcord 2.0.0b1 or later, this does not work for reaction menus.
BREAKING CHANGE
As this module now uses nextcord.PartialInteractionMessage in type checks, nextcord >= 2.0.0b1 is now required to run the module. When using 2.0.0a10 or earlier, there will be an error, module 'nextcord' has no attribute 'PartialInteractionMessage'.
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 run task pyright and fixed the relevant issues.
[x] This PR fixes an issue.
[ ] This PR adds something new (e.g. new method or parameters).
[x] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[ ] This PR is not a code change (e.g. documentation, README, ...)
If there are reaction buttons, the full InteractionMessage must be fetched when send returns a PartialInteractionMessage.
PartialInteractionMessage does not support add_reactions, so it should not be returned when self.buttons contains elements.
This was working prior to nextcord 2.0.0b1 due to a statement that was intended to be future-proof:
As prior to 2.0.0b1,
message
would always beNone
, this worked fine. When using nextcord 2.0.0b1 or later, this does not work for reaction menus.BREAKING CHANGE
As this module now uses
nextcord.PartialInteractionMessage
in type checks, nextcord >= 2.0.0b1 is now required to run the module. When using 2.0.0a10 or earlier, there will be an error,module 'nextcord' has no attribute 'PartialInteractionMessage'
.Checklist
task pyright
and fixed the relevant issues.