Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to create channel in discord.js

// -- Create Channel/Room
message.guild.channels.create('name', {
	type: 'GUILD_TEXT',
    permissionOverwrites: [{
    	id: message.guild.id,
        allow: ['VIEW_CHANNEL'],
        deny: ['SEND_MESSAGES'],
	}]
});
console.info(`name channel: name | type: text channel`)
 
PREVIOUS NEXT
Tagged: #create #channel
ADD COMMENT
Topic
Name
2+7 =