storage: fix GUILD_VOICE channel fetching

This commit is contained in:
Luna Mendes 2018-11-20 13:46:35 -03:00
parent c33be64b79
commit c4f2bb9be5
1 changed files with 3 additions and 2 deletions

View File

@ -286,8 +286,9 @@ class Storage:
}} }}
if chan_type == ChannelType.GUILD_VOICE: if chan_type == ChannelType.GUILD_VOICE:
vrow = await self.db.fetchval(""" vrow = await self.db.fetchrow("""
SELECT bitrate, user_limit FROM guild_voice_channels SELECT bitrate, user_limit
FROM guild_voice_channels
WHERE id = $1 WHERE id = $1
""", row['id']) """, row['id'])