diff options
| author | Rapptz <[email protected]> | 2016-11-10 20:31:58 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-03 09:51:56 -0500 |
| commit | 59a0df5f985d4391c4b0af612c902bd6ac802920 (patch) | |
| tree | 6bc3dd173680eab762535cadaa298e69682ae525 /discord/message.py | |
| parent | Make emojis and members stateful. (diff) | |
| download | discord.py-59a0df5f985d4391c4b0af612c902bd6ac802920.tar.xz discord.py-59a0df5f985d4391c4b0af612c902bd6ac802920.zip | |
Rename try_insert_user to store_user
Diffstat (limited to 'discord/message.py')
| -rw-r--r-- | discord/message.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/message.py b/discord/message.py index 1739fd65..403178a7 100644 --- a/discord/message.py +++ b/discord/message.py @@ -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: |