mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Fix return types in sync.py docstring
This commit is contained in:
parent
e3e0d93dd9
commit
53de3f9cbb
@ -636,9 +636,9 @@ class SyncWebhook(BaseWebhook):
|
|||||||
|
|
||||||
Returns
|
Returns
|
||||||
--------
|
--------
|
||||||
:class:`Webhook`
|
:class:`SyncWebhook`
|
||||||
A partial :class:`Webhook`.
|
A partial :class:`SyncWebhook`.
|
||||||
A partial webhook is just a webhook object with an ID and a token.
|
A partial :class:`SyncWebhook` is just a :class:`SyncWebhook` object with an ID and a token.
|
||||||
"""
|
"""
|
||||||
data: WebhookPayload = {
|
data: WebhookPayload = {
|
||||||
'id': id,
|
'id': id,
|
||||||
@ -678,9 +678,9 @@ class SyncWebhook(BaseWebhook):
|
|||||||
|
|
||||||
Returns
|
Returns
|
||||||
--------
|
--------
|
||||||
:class:`Webhook`
|
:class:`SyncWebhook`
|
||||||
A partial :class:`Webhook`.
|
A partial :class:`SyncWebhook`.
|
||||||
A partial webhook is just a webhook object with an ID and a token.
|
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)
|
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:
|
if m is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user