Better naming scheme for when we start requesting voice channels after this

This commit is contained in:
shockrah 2021-04-07 22:17:28 -07:00
parent ceabc73cf7
commit fe448d07d4

View File

@ -68,12 +68,15 @@ exports.list = async function(server, user) {
try {
const url = `${server['protocol']}://${server['hostname']}:${server['port']}/channels/list`
const response = await got(url, {
searchParams: { id: user['id'], jwt: user['jwt'], kind: ANY_CHANNEL },
const text_channel_response = await got(url, {
searchParams: { id: user['id'], jwt: user['jwt'], kind: TEXT_KIND },
responseType: 'json'
})
let text_channels = text_channel_response.body['channels']
console.log('text: ', text_channels)
const channels = response.body['channels']
const channels = text_channels
for(const channel of channels) {