Fix StageChannel.last_message_id always being None

This commit is contained in:
owocado 2023-05-24 04:12:12 +05:30 committed by GitHub
parent e870bb1335
commit 0e727d8e6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: