From c7cfacba8d41a8c624720ab5e001b6745eaa16dd Mon Sep 17 00:00:00 2001 From: grey-cat-1908 Date: Sun, 27 Mar 2022 17:15:33 +0300 Subject: [PATCH] maybe it will show create_channel in docs --- melisa/models/guild/guild.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/melisa/models/guild/guild.py b/melisa/models/guild/guild.py index 0b8660b..dae9721 100644 --- a/melisa/models/guild/guild.py +++ b/melisa/models/guild/guild.py @@ -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,