Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to move a channel to a category discord js

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}`);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #move #channel #category #discord #js
ADD COMMENT
Topic
Name
7+3 =