Fix typo in Guild.invites

This commit is contained in:
Rapptz 2017-01-09 03:13:57 -05:00
parent 3780943d0a
commit 5e201be792

View File

@ -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']))