Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: creating forum threads with files #2075

Merged
merged 3 commits into from May 25, 2023

Conversation

elliotcubit
Copy link
Contributor

@elliotcubit elliotcubit commented May 14, 2023

Summary

Allows creating a new forum thread with files. As mentioned in the issue, the thread creation endpoint supports uploading files directly, so there is no need to use a separate endpoint when this argument is provided to create_thread.

Fixes #1949

Information

  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed).
  • This PR is not a code change (e.g. documentation, README, typehinting,
    examples, ...).

Checklist

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.
  • I have updated the changelog to include these changes.

@elliotcubit elliotcubit requested a review from a team as a code owner May 14, 2023 18:11
@elliotcubit elliotcubit changed the title fix #1949 (allow creating forum threads with files) fix: #1949 (allow creating forum threads with files) May 14, 2023
CHANGELOG.md Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 14, 2023

Codecov Report

Merging #2075 (5dd6fe9) into master (8950c2e) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2075      +/-   ##
==========================================
- Coverage   33.14%   33.13%   -0.02%     
==========================================
  Files          97       97              
  Lines       19129    19136       +7     
==========================================
  Hits         6340     6340              
- Misses      12789    12796       +7     
Flag Coverage Δ
macos-latest-3.10 33.11% <0.00%> (-0.02%) ⬇️
macos-latest-3.11 33.11% <0.00%> (-0.02%) ⬇️
macos-latest-3.8 33.12% <0.00%> (-0.02%) ⬇️
macos-latest-3.9 33.12% <0.00%> (-0.02%) ⬇️
ubuntu-latest-3.10 33.11% <0.00%> (-0.02%) ⬇️
ubuntu-latest-3.11 33.11% <0.00%> (-0.02%) ⬇️
ubuntu-latest-3.8 33.12% <0.00%> (-0.02%) ⬇️
ubuntu-latest-3.9 33.12% <0.00%> (-0.02%) ⬇️
windows-latest-3.10 33.11% <0.00%> (-0.02%) ⬇️
windows-latest-3.11 33.11% <0.00%> (-0.02%) ⬇️
windows-latest-3.8 33.12% <0.00%> (-0.02%) ⬇️
windows-latest-3.9 33.12% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
discord/channel.py 34.11% <0.00%> (+0.09%) ⬆️
discord/http.py 22.82% <0.00%> (-0.24%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8950c2e...5dd6fe9. Read the comment docs.

@elliotcubit elliotcubit requested a review from Lulalaby May 14, 2023 18:37
@Lulalaby Lulalaby requested review from Dorukyum and JustaSqu1d and removed request for VincentRPS May 14, 2023 19:03
@Lulalaby Lulalaby dismissed their stale review May 14, 2023 19:03

resolved

CHANGELOG.md Outdated Show resolved Hide resolved
@Dorukyum Dorukyum changed the title fix: #1949 (allow creating forum threads with files) fix: creating forum threads with files May 17, 2023
@Lulalaby Lulalaby enabled auto-merge (squash) May 17, 2023 20:18
Lulalaby
Lulalaby previously approved these changes May 17, 2023
discord/http.py Outdated Show resolved Hide resolved
discord/http.py Outdated Show resolved Hide resolved
@Lulalaby Lulalaby self-requested a review May 18, 2023 05:38
@JustaSqu1d JustaSqu1d self-requested a review May 19, 2023 02:44
auto-merge was automatically disabled May 20, 2023 20:57

Head branch was pushed to by a user without write access

JustaSqu1d
JustaSqu1d previously approved these changes May 20, 2023
discord/http.py Outdated Show resolved Hide resolved
@plun1331 plun1331 added priority: high High Priority status: awaiting review Awaiting review from a maintainer feature Implements a feature API Reflection Discords API wasn't correctly reflected in the lib labels May 25, 2023
Co-authored-by: plun1331 <49261529+plun1331@users.noreply.github.com>
Signed-off-by: Elliot Cubit <7256340+elliotcubit@users.noreply.github.com>
@plun1331 plun1331 enabled auto-merge (squash) May 25, 2023 18:15
@plun1331 plun1331 merged commit a3937f6 into Pycord-Development:master May 25, 2023
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Reflection Discords API wasn't correctly reflected in the lib feature Implements a feature priority: high High Priority status: awaiting review Awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't create Forum threads with a file
4 participants