Consider news channel type as a TextChannel
This commit is contained in:
		
				
					committed by
					
						 Danny
						Danny
					
				
			
			
				
	
			
			
			
						parent
						
							053e2f5b9a
						
					
				
				
					commit
					682c0d962f
				
			| @@ -261,7 +261,7 @@ class Guild(Hashable): | ||||
|         if 'channels' in data: | ||||
|             channels = data['channels'] | ||||
|             for c in channels: | ||||
|                 if c['type'] == ChannelType.text.value: | ||||
|                 if c['type'] == ChannelType.text.value or c['type'] == ChannelType.news.value: | ||||
|                     self._add_channel(TextChannel(guild=self, data=c, state=self._state)) | ||||
|                 elif c['type'] == ChannelType.voice.value: | ||||
|                     self._add_channel(VoiceChannel(guild=self, data=c, state=self._state)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user