From 1bfe3bdff1bb3c545a43e3d213c636f5db1ff623 Mon Sep 17 00:00:00 2001 From: Haruka <57554044+Serious-senpai@users.noreply.github.com> Date: Mon, 7 Mar 2022 07:35:20 +0700 Subject: [PATCH] Fix bug in PartialMessageable.trigger_typing --- discord/channel.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/discord/channel.py b/discord/channel.py index 44efa9aa3..e28e03f5c 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -2142,12 +2142,11 @@ class PartialMessageable(discord.abc.Messageable, Hashable): def __init__(self, state: ConnectionState, id: int, type: Optional[ChannelType] = None): self._state: ConnectionState = state - self._channel: Object = Object(id=id) self.id: int = id self.type: Optional[ChannelType] = type - async def _get_channel(self) -> Object: - return self._channel + async def _get_channel(self) -> PartialMessageable: + return self def get_partial_message(self, message_id: int, /) -> PartialMessage: """Creates a :class:`PartialMessage` from the message ID.