Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create a category discord.js

guild.createChannel('new-category', {
  type: 'category',
  permissionsOverwrites: [{
    id: guild.id,
    deny: ['MANAGE_MESSAGES'],
    allow: ['SEND_MESSAGES']
  }]
})
  .then(console.log)
  .catch(console.error);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #category
ADD COMMENT
Topic
Name
4+2 =