mirror of
https://github.com/MelisaDev/melisa.git
synced 2024-11-11 19:07:28 +03:00
maybe it will show create_channel in docs
This commit is contained in:
parent
5aff0717aa
commit
c7cfacba8d
1 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue