Browse Source
Fix return types in sync.py docstring
pull/9325/head
scruz
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
6 deletions
-
discord/webhook/sync.py
|
|
@ -636,9 +636,9 @@ class SyncWebhook(BaseWebhook): |
|
|
|
|
|
|
|
Returns |
|
|
|
-------- |
|
|
|
:class:`Webhook` |
|
|
|
A partial :class:`Webhook`. |
|
|
|
A partial webhook is just a webhook object with an ID and a token. |
|
|
|
:class:`SyncWebhook` |
|
|
|
A partial :class:`SyncWebhook`. |
|
|
|
A partial :class:`SyncWebhook` is just a :class:`SyncWebhook` object with an ID and a token. |
|
|
|
""" |
|
|
|
data: WebhookPayload = { |
|
|
|
'id': id, |
|
|
@ -678,9 +678,9 @@ class SyncWebhook(BaseWebhook): |
|
|
|
|
|
|
|
Returns |
|
|
|
-------- |
|
|
|
:class:`Webhook` |
|
|
|
A partial :class:`Webhook`. |
|
|
|
A partial webhook is just a webhook object with an ID and a token. |
|
|
|
:class:`SyncWebhook` |
|
|
|
A partial :class:`SyncWebhook`. |
|
|
|
A partial :class:`SyncWebhook` is just a :class:`SyncWebhook` object with an ID and a token. |
|
|
|
""" |
|
|
|
m = re.search(r'discord(?:app)?\.com/api/webhooks/(?P<id>[0-9]{17,20})/(?P<token>[A-Za-z0-9\.\-\_]{60,68})', url) |
|
|
|
if m is None: |
|
|
|