Skip to content

Commit

Permalink
update HTTPClient.kick() to use reason kwarg (Pycord-Development#…
Browse files Browse the repository at this point in the history
  • Loading branch information
krittick authored Mar 4, 2022
1 parent 826e5a6 commit 7cb6a65
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions discord/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,11 +833,7 @@ def kick(self, user_id: Snowflake, guild_id: Snowflake, reason: Optional[str] =
guild_id=guild_id,
user_id=user_id,
)
if reason:
# thanks aiohttp
r.url = f"{r.url}?reason={_uriquote(reason)}"

return self.request(r)
return self.request(r, reason=reason)

def ban(
self,
Expand Down

0 comments on commit 7cb6a65

Please sign in to comment.