maybe it will show create_channel in docs

This commit is contained in:
grey-cat-1908 2022-03-27 17:15:33 +03:00
parent 5aff0717aa
commit c7cfacba8d

View file

@ -446,7 +446,11 @@ class Guild(APIModelBase):
nsfw: Optional[bool] = None,
reason: Optional[str] = None,
) -> Channel:
...
async def create_channel(self, *, reason: Optional[str] = None, **kwargs):
"""|coro|
Create a new channel object for the guild.
Parameters
@ -491,8 +495,6 @@ class Guild(APIModelBase):
:class:`~melisa.models.guild.channel.Channel`
New channel object.
"""
async def create_channel(self, *, reason: Optional[str] = None, **kwargs):
data = await self._http.post(
f"guilds/{self.id}/channels",
data=kwargs,