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.