mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-11-03 23:12:56 +00:00 
			
		
		
		
	Fix StageChannel.last_message_id always being None
This commit is contained in:
		@@ -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