Fix NameError inside Messageable.get_message

This commit is contained in:
Rapptz 2017-01-11 20:26:06 -05:00
parent 06ca518459
commit b9b9d8c4d0

View File

@ -624,7 +624,7 @@ class Messageable(metaclass=abc.ABCMeta):
channel = yield from self._get_channel()
data = yield from self._state.http.get_message(channel.id, id)
return state.create_message(channel=channel, data=data)
return self._state.create_message(channel=channel, data=data)
@asyncio.coroutine
def delete_messages(self, messages):