mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 07:47:10 +01:00 
			
		
		
		
	Initial support for channel categories
This commit is contained in:
		@@ -149,7 +149,7 @@ class SocketIOInterface:
 | 
			
		||||
        await self.io.emit('CHANNEL_CREATE', data=chan, room=str("GUILD_"+channel.server.id), namespace='/gateway')
 | 
			
		||||
    
 | 
			
		||||
    async def on_channel_update(self, channel):
 | 
			
		||||
        if str(channel.type) != "text":
 | 
			
		||||
        if str(channel.type) not in ["text", "category"]:
 | 
			
		||||
            return
 | 
			
		||||
        chan = self.get_formatted_channel(channel)
 | 
			
		||||
        await self.io.emit('CHANNEL_UPDATE', data=chan, room=str("GUILD_"+channel.server.id), namespace='/gateway')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user