What im trying to do is have discord.js make a category then after that make a channel then move that channel into the category if there is any possible way.
My Code Now:
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" });
}
}
message.guild.channels.create(name, { type: "GUILD_CATEGORY" })
.then(async (category) => {
await category.createChannel('channelName');
});