Skip to content

Commit 7bf8a9f

Browse files
authored
fix: properly pass guild_id to http's get_guild (#1394)
Fixes #1393. Co-authored-by: Astrea49 <25420078+Astrea49@users.noreply.github.com>
1 parent 8963704 commit 7bf8a9f

File tree

1 file changed

+2
-2
lines changed
  • interactions/api/http/http_requests

1 file changed

+2
-2
lines changed

interactions/api/http/http_requests/guild.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ async def get_guild(self, guild_id: "Snowflake_Type", with_counts: bool = True)
5454
a guild object
5555
5656
"""
57-
params = {"guild_id": guild_id, "with_counts": int(with_counts)}
58-
result = await self.request(Route("GET", "/guilds/{guild_id}"), params=params)
57+
params = {"with_counts": int(with_counts)}
58+
result = await self.request(Route("GET", "/guilds/{guild_id}", guild_id=guild_id), params=params)
5959
return cast(discord_typings.GuildData, result)
6060

6161
async def get_guild_preview(self, guild_id: "Snowflake_Type") -> discord_typings.GuildPreviewData:

0 commit comments

Comments
 (0)