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/channel.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/channel.py')
| -rw-r--r-- | discord/channel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/channel.py b/discord/channel.py index 70b0b0b3..b9141fe5 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -510,7 +510,7 @@ class DMChannel(abc.MessageChannel, Hashable): def __init__(self, *, me, state, data): self._state = state - self.recipient = state.try_insert_user(data['recipients'][0]) + self.recipient = state.store_user(data['recipients'][0]) self.me = me self.id = int(data['id']) @@ -591,7 +591,7 @@ class GroupChannel(abc.MessageChannel, Hashable): def __init__(self, *, me, state, data): self._state = state - self.recipients = [state.try_insert_user(u) for u in data['recipients']] + self.recipients = [state.store_user(u) for u in data['recipients']] self.id = int(data['id']) self.me = me self._update_group(data) |