From 53de3f9cbb9a2a5ee748a17829403e24a3c00b2b Mon Sep 17 00:00:00 2001 From: scruz Date: Thu, 30 Mar 2023 15:35:53 +0300 Subject: [PATCH] Fix return types in sync.py docstring --- discord/webhook/sync.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/discord/webhook/sync.py b/discord/webhook/sync.py index 3128246f2..71564a58d 100644 --- a/discord/webhook/sync.py +++ b/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[0-9]{17,20})/(?P[A-Za-z0-9\.\-\_]{60,68})', url) if m is None: