Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord.js sync channel permissions

if (!channel.parent) {
	return console.log('This channel is not listed under a category');
}

channel.lockPermissions()
	.then(() => console.log('Successfully synchronized permissions with parent channel'))
	.catch(console.error);
1
Source by discordjs.guide #
 
PREVIOUS NEXT
Tagged: #sync #channel #permissions
ADD COMMENT
Topic
Name
9+4 =