Fix Webhook.guild raising an AttributeError.

Fixes #1148
This commit is contained in:
Rapptz 2018-03-16 17:59:50 -04:00
parent 8ba78168a6
commit eb5defed00

View File

@ -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):