diff options
| author | Rapptz <[email protected]> | 2016-05-20 17:55:58 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-05-20 18:11:58 -0400 |
| commit | fe1b5b294182f9416788db5aca2181c094f52a83 (patch) | |
| tree | 457c8daf6f9aefbb5d214fd62a5d18498ead62d9 /discord/channel.py | |
| parent | logs_from improvements for after param. (diff) | |
| download | discord.py-fe1b5b294182f9416788db5aca2181c094f52a83.tar.xz discord.py-fe1b5b294182f9416788db5aca2181c094f52a83.zip | |
Add support for voice channel user limits.
Diffstat (limited to 'discord/channel.py')
| -rw-r--r-- | discord/channel.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/channel.py b/discord/channel.py index 08631a6c..a1c6b774 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -80,6 +80,8 @@ class Channel(Hashable): voice_members A list of :class:`Members` that are currently inside this voice channel. If :attr:`type` is not :attr:`ChannelType.voice` then this is always an empty array. + user_limit : int + The channel's limit for number of members that can be in a voice channel. """ def __init__(self, **kwargs): @@ -98,6 +100,7 @@ class Channel(Hashable): self.position = kwargs.get('position') self.bitrate = kwargs.get('bitrate') self.type = kwargs.get('type') + self.user_limit = kwargs.get('user_limit') try: self.type = ChannelType(self.type) except: |