From eb5defed007bfb694808258a38277bff2fddcfd1 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 16 Mar 2018 17:59:50 -0400 Subject: [PATCH] Fix Webhook.guild raising an AttributeError. Fixes #1148 --- discord/webhook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/webhook.py b/discord/webhook.py index e850cb694..d9d380a1d 100644 --- a/discord/webhook.py +++ b/discord/webhook.py @@ -429,7 +429,7 @@ class Webhook: If this is a partial webhook, then this will always return ``None``. """ - return self._state and self._state.get_guild(self.guild_id) + return self._state and self._state._get_guild(self.guild_id) @property def channel(self):