Skip to content

Commit

Permalink
Merge pull request #1426 from baronkobama/patch-3
Browse files Browse the repository at this point in the history
Update deprecated/incorrect endpoints
  • Loading branch information
Dorukyum authored Jun 18, 2022
2 parents 9b60b20 + 2614764 commit 9e3e69a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ def change_my_nickname(
*,
reason: Optional[str] = None,
) -> Response[member.Nickname]:
r = Route("PATCH", "/guilds/{guild_id}/members/@me/nick", guild_id=guild_id)
r = Route("PATCH", "/guilds/{guild_id}/members/@me", guild_id=guild_id)
payload = {
"nick": nickname,
}
Expand Down Expand Up @@ -1136,7 +1136,7 @@ def start_forum_thread(
def join_thread(self, channel_id: Snowflake) -> Response[None]:
return self.request(
Route(
"POST",
"PUT",
"/channels/{channel_id}/thread-members/@me",
channel_id=channel_id,
)
Expand Down

0 comments on commit 9e3e69a

Please sign in to comment.