From 9c5fb235180c198e4fca449503a2de54de00ddfa Mon Sep 17 00:00:00 2001 From: Levi Pesin <35454228+LeviPesin@users.noreply.github.com> Date: Sun, 21 Sep 2025 21:41:11 +0930 Subject: [PATCH] Same for SyncWebhook --- discord/webhook/sync.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/discord/webhook/sync.py b/discord/webhook/sync.py index 1786496fa..e0231864a 100644 --- a/discord/webhook/sync.py +++ b/discord/webhook/sync.py @@ -1108,7 +1108,7 @@ class SyncWebhook(BaseWebhook): ) as params: adapter: WebhookAdapter = _get_webhook_adapter() thread_id: Optional[int] = None - if thread is not MISSING: + if thread: thread_id = thread.id data = adapter.execute_webhook( @@ -1166,7 +1166,7 @@ class SyncWebhook(BaseWebhook): raise ValueError('This webhook does not have a token associated with it') thread_id: Optional[int] = None - if thread is not MISSING: + if thread: thread_id = thread.id adapter: WebhookAdapter = _get_webhook_adapter() @@ -1280,7 +1280,7 @@ class SyncWebhook(BaseWebhook): previous_allowed_mentions=previous_mentions, ) as params: thread_id: Optional[int] = None - if thread is not MISSING: + if thread: thread_id = thread.id adapter: WebhookAdapter = _get_webhook_adapter() @@ -1326,7 +1326,7 @@ class SyncWebhook(BaseWebhook): raise ValueError('This webhook does not have a token associated with it') thread_id: Optional[int] = None - if thread is not MISSING: + if thread: thread_id = thread.id adapter: WebhookAdapter = _get_webhook_adapter()