diff --git a/CHANGELOG.md b/CHANGELOG.md index 34e6bef80d..6b42658897 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2390](https://github.com/Pycord-Development/pycord/pull/2390)) - Fixed `NameError` in some instances of `Interaction`. ([#2402](https://github.com/Pycord-Development/pycord/pull/2402)) +- Fixed interactions being ignored due to `PartialMessage(able).id` being of type `str`. + ([#2406](https://github.com/Pycord-Development/pycord/pull/2406)) ### Changed diff --git a/discord/channel.py b/discord/channel.py index 2586e3eed7..da818f3357 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -3189,7 +3189,7 @@ def __init__( ): self._state: ConnectionState = state self._channel: Object = Object(id=id) - self.id: int = id + self.id: int = int(id) self.type: ChannelType | None = type async def _get_channel(self) -> Object: diff --git a/discord/message.py b/discord/message.py index 5f4d3bc994..9dd84d2325 100644 --- a/discord/message.py +++ b/discord/message.py @@ -1923,7 +1923,7 @@ def __init__(self, *, channel: PartialMessageableChannel, id: int): self.channel: PartialMessageableChannel = channel self._state: ConnectionState = channel._state - self.id: int = id + self.id: int = int(id) def _update(self, data) -> None: # This is used for duck typing purposes.