aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2018-03-16 17:59:50 -0400
committerRapptz <[email protected]>2018-03-16 17:59:50 -0400
commiteb5defed007bfb694808258a38277bff2fddcfd1 (patch)
tree3a167b46f18885bfaf67731f13aeb555f6e38916
parentAdd Spotify intergration colour (diff)
downloaddiscord.py-eb5defed007bfb694808258a38277bff2fddcfd1.tar.xz
discord.py-eb5defed007bfb694808258a38277bff2fddcfd1.zip
Fix Webhook.guild raising an AttributeError.
Fixes #1148
-rw-r--r--discord/webhook.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/webhook.py b/discord/webhook.py
index e850cb69..d9d380a1 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):