izy521 / discord.io

A small, single-file library for creating DiscordApp clients from Node.js or the browser
https://discord.gg/0MvHMfHcTKVVmIGP
MIT License
535 stars 155 forks source link

View channel permission for Voice channels #268

Open k1ker opened 6 years ago

k1ker commented 6 years ago

I can't edit View permission for Voice channels using the lib. But I should be allowed to do this: voice_and_text

Lines 1010-1012: allowed_values = [0, 4, 28].concat(((channel.type === 'text' || channel.type === 0) ? [10, 11, 12, 13, 14, 15, 16, 17, 18] : [20, 21, 22, 23, 24, 25] )); Probably, we need just add 10, in the last array before 20,