📜  创建类别 discord.js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:50.402000             🧑  作者: Mango

代码示例1
guild.createChannel('new-category', {
  type: 'category',
  permissionsOverwrites: [{
    id: guild.id,
    deny: ['MANAGE_MESSAGES'],
    allow: ['SEND_MESSAGES']
  }]
})
  .then(console.log)
  .catch(console.error);