Better naming scheme for when we start requesting voice channels after this
This commit is contained in:
parent
ceabc73cf7
commit
fe448d07d4
@ -68,12 +68,15 @@ exports.list = async function(server, user) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const url = `${server['protocol']}://${server['hostname']}:${server['port']}/channels/list`
|
const url = `${server['protocol']}://${server['hostname']}:${server['port']}/channels/list`
|
||||||
const response = await got(url, {
|
const text_channel_response = await got(url, {
|
||||||
searchParams: { id: user['id'], jwt: user['jwt'], kind: ANY_CHANNEL },
|
searchParams: { id: user['id'], jwt: user['jwt'], kind: TEXT_KIND },
|
||||||
responseType: 'json'
|
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) {
|
for(const channel of channels) {
|
||||||
|
Loading…
Reference in New Issue
Block a user