diff options
| author | Rapptz <[email protected]> | 2018-03-16 17:59:50 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-03-16 17:59:50 -0400 |
| commit | eb5defed007bfb694808258a38277bff2fddcfd1 (patch) | |
| tree | 3a167b46f18885bfaf67731f13aeb555f6e38916 | |
| parent | Add Spotify intergration colour (diff) | |
| download | discord.py-eb5defed007bfb694808258a38277bff2fddcfd1.tar.xz discord.py-eb5defed007bfb694808258a38277bff2fddcfd1.zip | |
Fix Webhook.guild raising an AttributeError.
Fixes #1148
| -rw-r--r-- | discord/webhook.py | 2 |
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): |