Browse Source
Change join thread endpoint from POST to PUT
pull/10385/head
Quintenvw
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
discord/http.py
|
|
|
@ -1345,7 +1345,7 @@ class HTTPClient: |
|
|
|
return self.request(r, json=params.payload, params=query, reason=reason) |
|
|
|
|
|
|
|
def join_thread(self, channel_id: Snowflake) -> Response[None]: |
|
|
|
return self.request(Route('POST', '/channels/{channel_id}/thread-members/@me', channel_id=channel_id)) |
|
|
|
return self.request(Route('PUT', '/channels/{channel_id}/thread-members/@me', channel_id=channel_id)) |
|
|
|
|
|
|
|
def add_user_to_thread(self, channel_id: Snowflake, user_id: Snowflake) -> Response[None]: |
|
|
|
return self.request( |
|
|
|
|