mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 16:24:14 +00:00
Fix StageChannel.last_message_id always being None
This commit is contained in:
parent
e870bb1335
commit
0e727d8e6d
@ -615,7 +615,7 @@ class ConnectionState(Generic[ClientT]):
|
||||
if self._messages is not None:
|
||||
self._messages.append(message)
|
||||
# we ensure that the channel is either a TextChannel, VoiceChannel, or Thread
|
||||
if channel and channel.__class__ in (TextChannel, VoiceChannel, Thread):
|
||||
if channel and channel.__class__ in (TextChannel, VoiceChannel, Thread, StageChannel):
|
||||
channel.last_message_id = message.id # type: ignore
|
||||
|
||||
def parse_message_delete(self, data: gw.MessageDeleteEvent) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user