Return a named tuple with message from ForumChannel.create_thread

This commit is contained in:
Rapptz
2022-05-01 19:32:11 -04:00
parent a704666ce3
commit 7f210c90f4
3 changed files with 25 additions and 5 deletions

View File

@@ -990,7 +990,7 @@ class HTTPClient:
*,
params: MultipartParameters,
reason: Optional[str] = None,
) -> Response[threads.Thread]:
) -> Response[threads.ForumThread]:
query = {'use_nested_fields': 1}
r = Route('POST', '/channels/{channel_id}/threads', channel_id=channel_id)
if params.files: