You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
..\.venv\Lib\site-packages\discord\__main__.py:33: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
- Python v3.11.7-final
- py-cord v2.4.1-final
- aiohttp v3.8.6
- system info: Windows 10 10.0.22631
(note: actual operating system is Windows 11)
Checklist
I have searched the open issues for duplicates.
I have shown the entire traceback, if possible.
I have removed my token from display, if visible.
Additional Context
Looking through the source code, it appears that this bug was introduced by d56dc86, where WebhookMessage._thread_id can be assigned None in fetch_message() while WebhookMessage.edit() assumes that the attribute can never be None.
Summary
When editing a message that was fetched by a partial webhook, it fails with a TypeError.
Reproduction Steps
fetch_message()
Minimal Reproducible Code
Expected Results
The message should have been edited.
Actual Results
The message is not edited, and the following error is raised:
Intents
N/A
System Information
(note: actual operating system is Windows 11)
Checklist
Additional Context
Looking through the source code, it appears that this bug was introduced by d56dc86, where
WebhookMessage._thread_id
can be assigned None infetch_message()
whileWebhookMessage.edit()
assumes that the attribute can never be None.pycord/discord/webhook/async_.py
Lines 1825 to 1827 in 9d4d0f7
pycord/discord/webhook/async_.py
Lines 891 to 892 in 9d4d0f7
The text was updated successfully, but these errors were encountered: