Add channel to category by name
问题 var server = message.guild; for (var i = 0; i < server.channels.array().length; i++) { server.channels.array()[i].delete(); } server.createChannel("Text Channels", "category"); server.createChannel('general', "text"); I am trying to make the text channel 'general` go into the category 'Text Channels' All the solutions I have found rely on you knowing the categories id . I was wondering if there is a way I could get the category id , or else move general into "Text Channels" simply by its name