add role to channel discord.js code example
Example 1: add role to channel discord.js
channel.updateOverwrite(channel.guild.roles.everyone, { VIEW_CHANNEL: false });
Example 2: add role to channel discord.js
// deleting the channels overwrite for the message author
channel.permissionOverwrites.get(message.author.id).delete();