Return a named tuple with message from ForumChannel.create_thread

This commit is contained in:
Rapptz committed 2022-05-01 19:32:11 -04:00
1 parent a704666ce3
commit 7f210c90f4
3 files changed
+25 -5

No files matched your search

+1 -1
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: