Fix crashing for now when a category is created.
A full implementation will come later.
This commit is contained in:
		@@ -249,10 +249,11 @@ class Guild(Hashable):
 | 
			
		||||
            for c in channels:
 | 
			
		||||
                if c['type'] == ChannelType.text.value:
 | 
			
		||||
                    channel = TextChannel(guild=self, data=c, state=self._state)
 | 
			
		||||
                else:
 | 
			
		||||
                    self._add_channel(channel)
 | 
			
		||||
                elif c['type'] == ChannelType.voice.value:
 | 
			
		||||
                    channel = VoiceChannel(guild=self, data=c, state=self._state)
 | 
			
		||||
                    self._add_channel(channel)
 | 
			
		||||
 | 
			
		||||
                self._add_channel(channel)
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def channels(self):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user