diff options
Diffstat (limited to 'discord/channel.py')
| -rw-r--r-- | discord/channel.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/discord/channel.py b/discord/channel.py index 67259f44..6478c47b 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -290,7 +290,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): count += 1 ret.append(msg) -class VoiceChannel(discord.abc.GuildChannel, Hashable): +class VoiceChannel(discord.abc.Callable, discord.abc.GuildChannel, Hashable): """Represents a Discord guild voice channel. Supported Operations: @@ -335,6 +335,12 @@ class VoiceChannel(discord.abc.GuildChannel, Hashable): def __repr__(self): return '<VoiceChannel id={0.id} name={0.name!r} position={0.position}>'.format(self) + def _get_voice_client_key(self): + return self.guild.id, 'guild_id' + + def _get_voice_state_pair(self): + return self.guild.id, self.id + def _update(self, guild, data): self.guild = guild self.name = data['name'] |