mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-06 18:11:59 +00:00
Fix Category.create_x_channel raising without overwrites
This commit is contained in:
parent
6ce1c537d4
commit
b59ec318c0
@ -1383,7 +1383,7 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
|
|||||||
ret.sort(key=lambda c: (c.position, c.id))
|
ret.sort(key=lambda c: (c.position, c.id))
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
async def create_text_channel(self, name, *, overwrites=None, reason=None, **options):
|
async def create_text_channel(self, name, **options):
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
A shortcut method to :meth:`Guild.create_text_channel` to create a :class:`TextChannel` in the category.
|
A shortcut method to :meth:`Guild.create_text_channel` to create a :class:`TextChannel` in the category.
|
||||||
@ -1393,9 +1393,9 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
|
|||||||
:class:`TextChannel`
|
:class:`TextChannel`
|
||||||
The channel that was just created.
|
The channel that was just created.
|
||||||
"""
|
"""
|
||||||
return await self.guild.create_text_channel(name, overwrites=overwrites, category=self, reason=reason, **options)
|
return await self.guild.create_text_channel(name, category=self, **options)
|
||||||
|
|
||||||
async def create_voice_channel(self, name, *, overwrites=None, reason=None, **options):
|
async def create_voice_channel(self, name, **options):
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
A shortcut method to :meth:`Guild.create_voice_channel` to create a :class:`VoiceChannel` in the category.
|
A shortcut method to :meth:`Guild.create_voice_channel` to create a :class:`VoiceChannel` in the category.
|
||||||
@ -1405,9 +1405,9 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
|
|||||||
:class:`VoiceChannel`
|
:class:`VoiceChannel`
|
||||||
The channel that was just created.
|
The channel that was just created.
|
||||||
"""
|
"""
|
||||||
return await self.guild.create_voice_channel(name, overwrites=overwrites, category=self, reason=reason, **options)
|
return await self.guild.create_voice_channel(name, category=self, **options)
|
||||||
|
|
||||||
async def create_stage_channel(self, name, *, overwrites=None, reason=None, **options):
|
async def create_stage_channel(self, name, **options):
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
A shortcut method to :meth:`Guild.create_stage_channel` to create a :class:`StageChannel` in the category.
|
A shortcut method to :meth:`Guild.create_stage_channel` to create a :class:`StageChannel` in the category.
|
||||||
@ -1419,7 +1419,7 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
|
|||||||
:class:`StageChannel`
|
:class:`StageChannel`
|
||||||
The channel that was just created.
|
The channel that was just created.
|
||||||
"""
|
"""
|
||||||
return await self.guild.create_stage_channel(name, overwrites=overwrites, category=self, reason=reason, **options)
|
return await self.guild.create_stage_channel(name, category=self, **options)
|
||||||
|
|
||||||
class StoreChannel(discord.abc.GuildChannel, Hashable):
|
class StoreChannel(discord.abc.GuildChannel, Hashable):
|
||||||
"""Represents a Discord guild store channel.
|
"""Represents a Discord guild store channel.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user