diff options
| author | Rapptz <[email protected]> | 2016-02-18 19:09:11 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-02-18 19:09:11 -0500 |
| commit | 91ac96daefcf889415ed4fce39250b7eeded134c (patch) | |
| tree | 192d81a3a51281723f17a7351efaaf62be3109ba | |
| parent | Fix NameError issue in Client.send_file. (diff) | |
| download | discord.py-91ac96daefcf889415ed4fce39250b7eeded134c.tar.xz discord.py-91ac96daefcf889415ed4fce39250b7eeded134c.zip | |
Add channel specific bitrates.
| -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 aafadd66..a4ac936c 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -66,6 +66,8 @@ class Channel(Hashable): type : :class:`ChannelType` The channel type. There is a chance that the type will be ``str`` if the channel type is not within the ones recognised by the enumerator. + bitrate : int + The channel's preferred audio bitrate in bits per second. changed_roles A list of :class:`Roles` that have been overridden from their default values in the :attr:`Server.roles` attribute. @@ -88,6 +90,7 @@ class Channel(Hashable): self.topic = kwargs.get('topic') self.is_private = False self.position = kwargs.get('position') + self.bitrate = kwargs.get('bitrate') self.type = kwargs.get('type') try: self.type = ChannelType(self.type) |