aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-11 20:26:06 -0500
committerRapptz <[email protected]>2017-01-11 20:26:06 -0500
commitb9b9d8c4d0391ac74c70895713c095f39a9d5b42 (patch)
treebc0906b2fad1580d2cd344345127ec1394ec051b
parentRename NoMoreMessages to NoMoreItems. (diff)
downloaddiscord.py-b9b9d8c4d0391ac74c70895713c095f39a9d5b42.tar.xz
discord.py-b9b9d8c4d0391ac74c70895713c095f39a9d5b42.zip
Fix NameError inside Messageable.get_message
-rw-r--r--discord/abc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py
index 4cd288d1..4d95eda8 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -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):