From 5ef37923def7d80f6e741007a241c4441db7af56 Mon Sep 17 00:00:00 2001 From: MrKomodoDragon <74436682+MrKomodoDragon@users.noreply.github.com> Date: Mon, 23 Aug 2021 02:28:52 -0700 Subject: [PATCH] Make getters in Client positional only --- discord/client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/discord/client.py b/discord/client.py index 1c5f496c5..6c4a52ec0 100644 --- a/discord/client.py +++ b/discord/client.py @@ -755,7 +755,7 @@ class Client: """ return PartialMessageable(state=self._connection, id=id, type=type) - def get_stage_instance(self, id) -> Optional[StageInstance]: + def get_stage_instance(self, id: int, /) -> Optional[StageInstance]: """Returns a stage instance with the given stage channel ID. .. versionadded:: 2.0 @@ -777,7 +777,7 @@ class Client: if isinstance(channel, StageChannel): return channel.instance - def get_guild(self, id) -> Optional[Guild]: + def get_guild(self, id: int, /) -> Optional[Guild]: """Returns a guild with the given ID. Parameters @@ -792,7 +792,7 @@ class Client: """ return self._connection._get_guild(id) - def get_user(self, id) -> Optional[User]: + def get_user(self, id: int, /) -> Optional[User]: """Returns a user with the given ID. Parameters @@ -807,7 +807,7 @@ class Client: """ return self._connection.get_user(id) - def get_emoji(self, id) -> Optional[Emoji]: + def get_emoji(self, id: int, /) -> Optional[Emoji]: """Returns an emoji with the given ID. Parameters