From 4f4c3ab2ff91612f9d5b815c43de6844eb5f38fe Mon Sep 17 00:00:00 2001 From: Andrei Date: Wed, 4 Jan 2017 10:26:55 -0600 Subject: [PATCH] feature - Channel.recipients should be a hash map --- disco/types/channel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disco/types/channel.py b/disco/types/channel.py index 3912535..4a26c05 100644 --- a/disco/types/channel.py +++ b/disco/types/channel.py @@ -5,7 +5,7 @@ from holster.enum import Enum from disco.util.snowflake import to_snowflake from disco.util.functional import cached_property, one_or_many, chunks from disco.types.user import User -from disco.types.base import SlottedModel, Field, ListField, AutoDictField, snowflake, enum, text +from disco.types.base import SlottedModel, Field, AutoDictField, snowflake, enum, text from disco.types.permissions import Permissions, Permissible, PermissionValue from disco.voice.client import VoiceClient @@ -111,7 +111,7 @@ class Channel(SlottedModel, Permissible): last_message_id = Field(snowflake) position = Field(int) bitrate = Field(int) - recipients = ListField(User) + recipients = AutoDictField(User, 'id') type = Field(enum(ChannelType)) overwrites = AutoDictField(PermissionOverwrite, 'id', alias='permission_overwrites')