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