Create GuildChannel discord.js code example

Example 1: discord.js create channel

// Create a new text channel
guild.channels.create('new-general', { reason: 'Needed a cool new channel' })
  .then(console.log)
  .catch(console.error);

// Create a new channel with permission overwrites
guild.channels.create('new-voice', {
  type: 'voice',
  permissionOverwrites: [
     {
       id: message.author.id,
       deny: ['VIEW_CHANNEL'],
    },
  ],
})

Example 2: discord bot presence

client.on('ready', () => {
    console.log(`${client.user.tag}` + ' is Up & Working')
    client.user.setActivity(prefix + 'Help ')});
   // This Will Show Playing : !Help or WhatEver You Want//