aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-08-21 02:08:47 -0400
committerRapptz <[email protected]>2017-08-21 02:11:00 -0400
commitb5d987347a3f9d190210f9f3ae26d095407c81be (patch)
tree1cb68b7323c71c378c641b1ab7a8b33737acba50
parentFix Webhook.execute alias. (diff)
downloaddiscord.py-b5d987347a3f9d190210f9f3ae26d095407c81be.tar.xz
discord.py-b5d987347a3f9d190210f9f3ae26d095407c81be.zip
Fix some docstrings.
-rw-r--r--discord/webhook.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/discord/webhook.py b/discord/webhook.py
index f9199e45..bd9806b3 100644
--- a/discord/webhook.py
+++ b/discord/webhook.py
@@ -433,9 +433,7 @@ class Webhook:
@property
def created_at(self):
- """Returns the webhook's creation time in UTC.
-
- This is when the webhook's discord account was created."""
+ """Returns the webhook's creation time in UTC."""
return utils.snowflake_time(self.id)
@property
@@ -475,7 +473,7 @@ class Webhook:
Raises
------
InvalidArgument
- Bad image format passed to ``format` or invalid ``size``.
+ Bad image format passed to ``format`` or invalid ``size``.
"""
if self.avatar is None:
# Default is always blurple apparently
@@ -648,5 +646,5 @@ class Webhook:
return self._adapter.execute_webhook(wait=wait, json=payload)
def execute(self, *args, **kwargs):
- """An alias for :meth:`.~Webhook.send`."""
+ """An alias for :meth:`~.Webhook.send`."""
return self.send(*args, **kwargs)