mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-10-29 16:09:05 +00:00
Fix StageChannel.last_message_id always being None
This commit is contained in:
1 parent
e870bb1335
commit
0e727d8e6d
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user