From 59a0df5f985d4391c4b0af612c902bd6ac802920 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 10 Nov 2016 20:31:58 -0500 Subject: Rename try_insert_user to store_user --- discord/channel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discord/channel.py') 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) -- cgit v1.2.3