How to create a channel

I want to create a channel
6 Replies
d.js toolkit
d.js toolkit2mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Steve
SteveOP2mo ago
I know the name and id of the catagory
d.js docs
d.js docs2mo ago
:method: GuildChannelManager#create() @14.16.3 Creates a new channel in the guild.
// Create a new text channel
guild.channels.create({ name: 'new-general', reason: 'Needed a cool new channel' })
.then(console.log)
.catch(console.error);
// Create a new text channel
guild.channels.create({ name: 'new-general', reason: 'Needed a cool new channel' })
.then(console.log)
.catch(console.error);
Steve
SteveOP2mo ago
How do I set the correct catagory?
d.js docs
d.js docs2mo ago
:propertysignature: GuildChannelCreateOptions#parent @14.16.3 Parent of the new channel
Steve
SteveOP2mo ago
With the catagory ID? thanks :) How do I sync the permisions with it's catagory? But I want to allow it to the user who ran the interaction nvm Thanks, everything works
Want results from more Discord servers?
Add your server