Use GuildChannel abc for CategoryChannel edit
I noticed nothing happened when I did `ch.edit(overwrites=oh.overwrites)` `http.edit_channel` doesn't do anything with the `overwrites` keyword, it's processed as `permission_overwrites` instead which `self._edit` takes care of. I feel this was an oversight at some point.
This commit is contained in:
		@@ -791,17 +791,7 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
 | 
			
		||||
            Editing the category failed.
 | 
			
		||||
        """
 | 
			
		||||
 | 
			
		||||
        try:
 | 
			
		||||
            position = options.pop('position')
 | 
			
		||||
        except KeyError:
 | 
			
		||||
            pass
 | 
			
		||||
        else:
 | 
			
		||||
            await self._move(position, reason=reason)
 | 
			
		||||
            self.position = position
 | 
			
		||||
 | 
			
		||||
        if options:
 | 
			
		||||
            data = await self._state.http.edit_channel(self.id, reason=reason, **options)
 | 
			
		||||
            self._update(self.guild, data)
 | 
			
		||||
        await self._edit(options=options, reason=reason)
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def channels(self):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user