From 27e354aa508cf0842f6d03a0a327ac33354b655c Mon Sep 17 00:00:00 2001 From: UK <41271523+NeloBlivion@users.noreply.github.com> Date: Thu, 21 Mar 2024 18:15:57 +0000 Subject: [PATCH 1/3] force partial IDs to int --- discord/channel.py | 2 +- discord/message.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. From 120e482e92585cfe94c90ef136a71ffc483d1cbd Mon Sep 17 00:00:00 2001 From: UK <41271523+NeloBlivion@users.noreply.github.com> Date: Thu, 21 Mar 2024 18:21:08 +0000 Subject: [PATCH 2/3] changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34e6bef80d..37208c4df7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,10 @@ 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 `PartialMessage/able` IDs sometimes being `str` rather than `int`. + ([#2406](https://github.com/Pycord-Development/pycord/pull/2406)) +- Fixed Views sent in `ForumChannel.create_thread` not recieving interactions. + ([#2406](https://github.com/Pycord-Development/pycord/pull/2406)) ### Changed From 93b1de9ddaf59ce5c361fefc605c9fc6c04f39d3 Mon Sep 17 00:00:00 2001 From: UK <41271523+NeloBlivion@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:46:27 +0000 Subject: [PATCH 3/3] Update CHANGELOG.md Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Signed-off-by: UK <41271523+NeloBlivion@users.noreply.github.com> --- CHANGELOG.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37208c4df7..6b42658897 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,9 +28,7 @@ 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 `PartialMessage/able` IDs sometimes being `str` rather than `int`. - ([#2406](https://github.com/Pycord-Development/pycord/pull/2406)) -- Fixed Views sent in `ForumChannel.create_thread` not recieving interactions. +- Fixed interactions being ignored due to `PartialMessage(able).id` being of type `str`. ([#2406](https://github.com/Pycord-Development/pycord/pull/2406)) ### Changed