mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Add channel specific bitrates.
This commit is contained in:
parent
3ec99a7cb8
commit
91ac96daef
@ -66,6 +66,8 @@ class Channel(Hashable):
|
|||||||
type : :class:`ChannelType`
|
type : :class:`ChannelType`
|
||||||
The channel type. There is a chance that the type will be ``str`` if
|
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.
|
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
|
changed_roles
|
||||||
A list of :class:`Roles` that have been overridden from their default
|
A list of :class:`Roles` that have been overridden from their default
|
||||||
values in the :attr:`Server.roles` attribute.
|
values in the :attr:`Server.roles` attribute.
|
||||||
@ -88,6 +90,7 @@ class Channel(Hashable):
|
|||||||
self.topic = kwargs.get('topic')
|
self.topic = kwargs.get('topic')
|
||||||
self.is_private = False
|
self.is_private = False
|
||||||
self.position = kwargs.get('position')
|
self.position = kwargs.get('position')
|
||||||
|
self.bitrate = kwargs.get('bitrate')
|
||||||
self.type = kwargs.get('type')
|
self.type = kwargs.get('type')
|
||||||
try:
|
try:
|
||||||
self.type = ChannelType(self.type)
|
self.type = ChannelType(self.type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user