Can't create Forum threads with a file #1949
Labels
API Reflection
Discords API wasn't correctly reflected in the lib
bug
Something isn't working
priority: high
High Priority
status: todo
This issue needs work
Milestone
Summary
Trying to pass
file
orfiles
intoForumChannel.create_thread
raises aHTTPException
due to using the wrong method.Reproduction Steps
file
orfiles
parameterMinimal Reproducible Code
Expected Results
The thread is created with the file included.
Actual Results
Intents
all
System Information
Checklist
Additional Context
This happens because when
file
orfiles
is passed in, we use the separatehttp.send_files
method which directs to the forum channel ID, not the thread ID.This method is only used in the default
Messageable.send
and isn't really made for this purpose as it's asend
method, not for creating threads. The thread creation endpoint supports files directly as part of its message payload, so if I had to guess this was just an oversight that hadn't been considered. I've created this issue for posterity and may look into fixing it myself, but if anyone else wants to go for it then be my guest.The text was updated successfully, but these errors were encountered: