Skip to content

Commit a344a50

Browse files
fix: always cast PartialMessage(able) IDs to int (#2406)
* force partial IDs to int * changelog * Update CHANGELOG.md Co-authored-by: Dorukyum <[email protected]> Signed-off-by: UK <[email protected]> * different fix * adjust changelog --------- Signed-off-by: UK <[email protected]> Co-authored-by: Dorukyum <[email protected]>
1 parent abef1ce commit a344a50

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ These changes are available on the `master` branch, but have not yet been releas
4444
([#2390](https://github.com/Pycord-Development/pycord/pull/2390))
4545
- Fixed `NameError` in some instances of `Interaction`.
4646
([#2402](https://github.com/Pycord-Development/pycord/pull/2402))
47+
- Fixed interactions being ignored due to `PartialMessage.id` being of type `str`.
48+
([#2406](https://github.com/Pycord-Development/pycord/pull/2406))
4749
- Fixed the type-hinting of `ScheduledEvent.subscribers` to reflect actual behavior.
4850
([#2400](https://github.com/Pycord-Development/pycord/pull/2400))
4951
- Fixed `ScheduledEvent.subscribers` behavior with `limit=None`.

discord/channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ async def create_thread(
13391339
f.close()
13401340

13411341
ret = Thread(guild=self.guild, state=self._state, data=data)
1342-
msg = ret.get_partial_message(data["last_message_id"])
1342+
msg = ret.get_partial_message(int(data["last_message_id"]))
13431343
if view:
13441344
state.store_view(view, msg.id)
13451345

0 commit comments

Comments
 (0)