From 310cb05040aa01ecb525f2f6109f0940745fe545 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 21 Aug 2017 02:04:44 -0400 Subject: [PATCH] Fix Webhook.execute alias. --- discord/webhook.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/discord/webhook.py b/discord/webhook.py index d7d0fdcc6..f9199e456 100644 --- a/discord/webhook.py +++ b/discord/webhook.py @@ -647,5 +647,6 @@ class Webhook: else: return self._adapter.execute_webhook(wait=wait, json=payload) - execute = send - execute.__doc__ = """An alias for :meth:`.~Webhook.send`.""" + def execute(self, *args, **kwargs): + """An alias for :meth:`.~Webhook.send`.""" + return self.send(*args, **kwargs)