export const USER_VOICE_NODES=Object.freeze(['voicechat.listen','voicechat.speak','voicechat.groups']); export function voicePermissions(existing){ if(!Array.isArray(existing)||existing.some(n=>typeof n!=='string'))throw Error('Invalid stored User permissions'); return [...new Set([...existing,...USER_VOICE_NODES])]; }