aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-09 03:13:57 -0500
committerRapptz <[email protected]>2017-01-09 03:13:57 -0500
commit5e201be79299b8e821c6da6746094bbd0369bd11 (patch)
tree7e80b4fbb4f89d71484b7ade9f30d57e7e7748e8
parentAdd Guild.create_text_channel and Guild.create_voice_channel. (diff)
downloaddiscord.py-5e201be79299b8e821c6da6746094bbd0369bd11.tar.xz
discord.py-5e201be79299b8e821c6da6746094bbd0369bd11.zip
Fix typo in Guild.invites
-rw-r--r--discord/guild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/guild.py b/discord/guild.py
index a09508a9..d58c3276 100644
--- a/discord/guild.py
+++ b/discord/guild.py
@@ -730,7 +730,7 @@ class Guild(Hashable):
The list of invites that are currently active.
"""
- data = yield from self._state.http.invites_from(guild.id)
+ data = yield from self._state.http.invites_from(self.id)
result = []
for invite in data:
channel = self.get_channel(int(invite['channel']['id']))