Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

49
Vistas
How can I check if a user has permissions in a specific voice channel?

I created a command that changes voice permissions, but what I want is if the user doesn't have Manage Channel on that voice channel they can't use it. How do I do this? I know about member.permissions.has() but that doesn't check for permissions in the specific voice channel. Any ideas?

7 months ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The permissionsIn method would be useful here:

member.permissionsIn(theVoiceChannel).has('MANAGE_CHANNELS')
7 months ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos