let category = server.channels.find(c => c.name == "Text Channels" && c.type == "category"),
channel = server.channels.find(c => c.name == "general" && c.type == "text");
if (category && channel) channel.setParent(category.id);
else console.error(`One of the channels is missing:
Category: ${!!category}
Channel: ${!!channel}`);