Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

229
Views
TypeError [INVALID_TYPE]: el parámetro proporcionado no es un usuario ni un rol. Pero el papel es ciertamente suministrado. Discorcd.js V13

Así que estoy creando un sistema de tickets y necesito un cierto rol para poder buscar en el canal recién creado, pero sigue quejándose de que no proporcioné un rol, aunque definitivamente lo hice.

He probado lo siguiente:

 await interaction.guild.roles.fetch() let helperrol = await interaction.guild.roles.cache.find(role => role.id === rolesAndChannels.helperRol); let modrol = await interaction.guild.roles.cache.find(role => role.id === rolesAndChannels.moderatorRol); await interaction.guild.channels.create(kanaalmaaknaam, { type: 'text', parent: rolesAndChannels.ticketCatagorie, permissionOverwrites: [{ id: interaction.guild.id, deny: ['VIEW_CHANNEL', 'SEND_MESSAGES'], }, { id: interaction.user.id, allow: ['VIEW_CHANNEL', 'SEND_MESSAGES'], }, { id: helperrol, allow: ['VIEW_CHANNEL', 'SEND_MESSAGES'], }, { id: modrol, allow: ['VIEW_CHANNEL', 'SEND_MESSAGES'], }, ], }).catch('Er is een fout opgetreden bij het maken van het text kanaal');

Pero sigo teniendo el error.

Yo he tratado:

 { id: rolesAndChannels.moderatorRol, allow: ['VIEW_CHANNEL', 'SEND_MESSAGES'], },

Donde rolesAndChannels.moderatorRol es el roleID pero eso da como resultado el mismo error.

También he intentado simplemente proporcionar el ID de rol directamente, pero sigue teniendo el mismo error.

He habilitado la intención de parciales si eso es importante.

Es un comando de barra.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

El aviso fue que de alguna manera copié las identificaciones incorrectas de los roles o algo así. Volví a copiar los ID de función del menú de configuración y eso solucionó el error.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!