From dcfdaa01076d9da8e0a0cbbea2ff7243ca4a2f1c Mon Sep 17 00:00:00 2001 From: Bluenix Date: Sun, 1 May 2022 21:00:13 +0200 Subject: [PATCH] Fix typo in `fetch_member()` request path --- library/wumpy-rest/pyproject.toml | 2 +- library/wumpy-rest/wumpy/rest/endpoints/guild.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/wumpy-rest/pyproject.toml b/library/wumpy-rest/pyproject.toml index e8c1f9a..ca63867 100644 --- a/library/wumpy-rest/pyproject.toml +++ b/library/wumpy-rest/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "wumpy-rest" -version = "0.1.2" +version = "0.1.3" description = "Reusable and richly typed wrapper over the Discord REST API" readme = {file = "README.md", content-type="text/markdown"} diff --git a/library/wumpy-rest/wumpy/rest/endpoints/guild.py b/library/wumpy-rest/wumpy/rest/endpoints/guild.py index 757aa46..f512166 100644 --- a/library/wumpy-rest/wumpy/rest/endpoints/guild.py +++ b/library/wumpy-rest/wumpy/rest/endpoints/guild.py @@ -520,7 +520,7 @@ async def fetch_member(self, guild: SupportsInt, user: SupportsInt) -> GuildMemb The member data of the user. """ return await self.request(Route( - 'GET', '/guilds/{guild_id}/embers/{user_id}', + 'GET', '/guilds/{guild_id}/members/{user_id}', guild_id=int(guild), user_id=int(user) ))