Levi Pesin
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
8 additions and
8 deletions
-
discord/webhook/async_.py
-
discord/webhook/sync.py
|
|
@ -1894,7 +1894,7 @@ class Webhook(BaseWebhook): |
|
|
|
) as params: |
|
|
|
adapter = async_context.get() |
|
|
|
thread_id: Optional[int] = None |
|
|
|
if thread is not MISSING: |
|
|
|
if thread: |
|
|
|
thread_id = thread.id |
|
|
|
|
|
|
|
data = await adapter.execute_webhook( |
|
|
@ -1959,7 +1959,7 @@ class Webhook(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 = async_context.get() |
|
|
@ -2102,7 +2102,7 @@ class Webhook(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 = async_context.get() |
|
|
@ -2164,7 +2164,7 @@ class Webhook(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 = async_context.get() |
|
|
|
|
|
@ -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() |
|
|
|