mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Fix bug in PartialMessageable.trigger_typing
This commit is contained in:
parent
87415ab5a7
commit
1bfe3bdff1
@ -2142,12 +2142,11 @@ class PartialMessageable(discord.abc.Messageable, Hashable):
|
|||||||
|
|
||||||
def __init__(self, state: ConnectionState, id: int, type: Optional[ChannelType] = None):
|
def __init__(self, state: ConnectionState, id: int, type: Optional[ChannelType] = None):
|
||||||
self._state: ConnectionState = state
|
self._state: ConnectionState = state
|
||||||
self._channel: Object = Object(id=id)
|
|
||||||
self.id: int = id
|
self.id: int = id
|
||||||
self.type: Optional[ChannelType] = type
|
self.type: Optional[ChannelType] = type
|
||||||
|
|
||||||
async def _get_channel(self) -> Object:
|
async def _get_channel(self) -> PartialMessageable:
|
||||||
return self._channel
|
return self
|
||||||
|
|
||||||
def get_partial_message(self, message_id: int, /) -> PartialMessage:
|
def get_partial_message(self, message_id: int, /) -> PartialMessage:
|
||||||
"""Creates a :class:`PartialMessage` from the message ID.
|
"""Creates a :class:`PartialMessage` from the message ID.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user