diff options
| author | Rapptz <[email protected]> | 2015-10-16 15:52:11 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-10-16 15:52:11 -0400 |
| commit | be14fd1dcc49b2806b3275b91cb74a8803de1c32 (patch) | |
| tree | 358d9036dc3d9c46b65273fe4c94206be9ed5816 /discord/channel.py | |
| parent | Separate colour tuple into its own class. (diff) | |
| download | discord.py-be14fd1dcc49b2806b3275b91cb74a8803de1c32.tar.xz discord.py-be14fd1dcc49b2806b3275b91cb74a8803de1c32.zip | |
Add Channel.voice_members
This allows you to see which members are currently in a voice
channel.
Diffstat (limited to 'discord/channel.py')
| -rw-r--r-- | discord/channel.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/discord/channel.py b/discord/channel.py index 74d74001..ee276f58 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -56,10 +56,15 @@ class Channel(object): An array of :class:`Roles` that have been overridden from their default values in the :attr:`Server.roles` attribute. + .. attribute:: voice_members + + An array of :class:`Members` that are currently inside this voice channel. + If :attr:`type` is not ``'voice'`` then this is always an empty array. """ def __init__(self, **kwargs): self.update(**kwargs) + self.voice_members = [] def update(self, **kwargs): self.name = kwargs.get('name') |