From 8c6ff6df861994ba75b40210eafc8bd0a592b7c0 Mon Sep 17 00:00:00 2001 From: Kyriog Date: Fri, 31 Aug 2018 09:53:09 +0200 Subject: [PATCH] Adding user_limit to Channel objects (#110) --- disco/types/channel.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/disco/types/channel.py b/disco/types/channel.py index 492e3a8..2c2ffb4 100644 --- a/disco/types/channel.py +++ b/disco/types/channel.py @@ -110,6 +110,8 @@ class Channel(SlottedModel, Permissible): The channel's position. bitrate : int The channel's bitrate. + user_limit : int + The channel's user limit. recipients: list(:class:`disco.types.user.User`) Members of this channel (if this is a DM channel). type : :const:`ChannelType` @@ -124,6 +126,7 @@ class Channel(SlottedModel, Permissible): last_message_id = Field(snowflake) position = Field(int) bitrate = Field(int) + user_limit = Field(int) recipients = AutoDictField(User, 'id') nsfw = Field(bool) type = Field(enum(ChannelType))