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