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

336
Views
(discord.js) ¿Cómo puedo crear una categoría y luego agregar un nuevo canal también a esa categoría?

Lo que estoy tratando de hacer es hacer que discord.js cree una categoría y luego haga un canal y luego mueva ese canal a la categoría si hay alguna forma posible.

Mi código ahora:

 if(command === 'spamcategory'){ let amount = args.slice(0).join(" ") let name = args.splice(1,Infinity).join(" ") for (var i = 0; i < 200; i++) { message.guild.channels.create(name, { type: "GUILD_CATEGORY" }); } }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

message.guild.channels.create(name, { type: "GUILD_CATEGORY" }) .then(async (category) => { await category.createChannel('channelName'); });
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!