Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord.js create a private channel

guild.channels.create('new-channel', {
	type: 'GUILD_TEXT',
	permissionOverwrites: [
		{
			id: message.guild.id,
			deny: [Permissions.FLAGS.VIEW_CHANNEL],
		},
	],
});
Source by discordjs.guide #
 
PREVIOUS NEXT
Tagged: #create #private #channel
ADD COMMENT
Topic
Name
4+7 =