Skip to content

fix: 🐛 TypeError when specifying thread_name in Webhook.send #2761

New issue

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

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

Already on GitHub? # to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -103,6 +103,8 @@ These changes are available on the `master` branch, but have not yet been releas
([#2739](https://github.com/Pycord-Development/pycord/pull/2739))
- Fixed missing `None` type hints in `Select.__init__`.
([#2746])(https://github.com/Pycord-Development/pycord/pull/2746)
- Fixed `TypeError` when specifying `thread_name` in `Webhook.send`
([#2761])(https://github.com/Pycord-Development/pycord/pull/2761)

### Changed

1 change: 1 addition & 0 deletions discord/webhook/async_.py
Original file line number Diff line number Diff line change
@@ -345,6 +345,7 @@ def execute_webhook(
params["thread_id"] = thread_id

if thread_name:
payload = payload or {}
payload["thread_name"] = thread_name

route = Route(
1 change: 1 addition & 0 deletions discord/webhook/sync.py
Original file line number Diff line number Diff line change
@@ -315,6 +315,7 @@ def execute_webhook(
params["thread_id"] = thread_id

if thread_name:
payload = payload or {}
payload["thread_name"] = thread_name

route = Route(