From 87d1c8599110e391b4bf1673f92af1289847d856 Mon Sep 17 00:00:00 2001 From: Nerd Bear Date: Thu, 14 Nov 2024 20:58:23 +0000 Subject: [PATCH] Moved Params docstring bellow warnings and Roughly equivalent to Signed-off-by: Nerd Bear --- disnake/client.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/disnake/client.py b/disnake/client.py index 625043f5c6..df6985c0d8 100644 --- a/disnake/client.py +++ b/disnake/client.py @@ -1257,11 +1257,6 @@ def run(self, *args: Any, **kwargs: Any) -> None: If you want more control over the event loop then this function should not be used. Use :meth:`start` coroutine or :meth:`connect` + :meth:`login`. - - Parameters - ---------- - token: :class:`str` - The discord token of the bot that is being ran. Roughly Equivalent to: :: @@ -1277,7 +1272,12 @@ def run(self, *args: Any, **kwargs: Any) -> None: This function must be the last function to call due to the fact that it is blocking. That means that registration of events or anything being - called after this function call will not execute until it returns. + called after this function call will not execute until it returns + + Parameters + ---------- + token: :class:`str` + The discord token of the bot that is being ran. """ loop = self.loop