Rename try_insert_user to store_user

This commit is contained in:
Rapptz
2016-11-10 20:31:58 -05:00
parent 5cb3ad14e8
commit 59a0df5f98
5 changed files with 13 additions and 13 deletions

View File

@ -141,7 +141,7 @@ class Message:
continue
self._try_patch(data, 'edited_timestamp', utils.parse_time)
self._try_patch(data, 'author', self._state.try_insert_user)
self._try_patch(data, 'author', self._state.store_user)
self._try_patch(data, 'pinned', bool)
self._try_patch(data, 'mention_everyone', bool)
self._try_patch(data, 'tts', bool)
@ -161,7 +161,7 @@ class Message:
def _handle_mentions(self, mentions):
self.mentions = []
if self.guild is None:
self.mentions = [self._state.try_insert_user(m) for m in mentions]
self.mentions = [self._state.store_user(m) for m in mentions]
return
for mention in mentions: