title: How to overwrite TextChannel permissions
body: <p>I have code a Discord Bot, with Node.js, and I want, with the code of my bot, assign a permission for a player</p>
  
  <p>For explain a little more details, I try to create the board game "Werewolves", for playing with my friend on Discord. I develloped this bot (with node.js ; I'm a beginner), allowing, when I enter a command on Discord, to send a message to a player for saying his role in the game.</p>
  
  <p>But I'm blocking in something now : for example for players who are "Werewolves", I want to give her an access to a channel, so that they can talk together, and the others players can't view the messages (I can make that with "roles", but when somebody check the role of an another player, he can view his role ; eand I don't think there is something to don't see roles of a player)</p>
  
  <p>I have check the library discord.js, and I view two solutions ; but I can't get both to work !
  The first : (the constant "lg" is for Werewolves ; loup-garou in french ^^)</p>
  
  <pre><code> .then(function(member) {
       let lg = new Discord.Permissions(member, 0x00000400)
   })
  </code></pre>
  
  <p>The second "solution" :</p>
  
  <pre><code>.overwritePermissions(guild.member {
      'VIEW_CHANNEL': true 
      'SEND_MESSAGES': true 
      'READ_MESSAGE_HISTORY': true
  })
  </code></pre>
  
  <p>I repeat, but I have already explained above; I'm trying to get, the fact that the player has a new "role" (but that is not a role I want to add to him), to assign him the permissions for he can see a special channel (Werewolf-channel if he's a werewolf in the game), and he can send a message on that same channel</p>
  
  <p>Here is a screen (<a href="https://prnt.sc/k5qvvb" rel="nofollow noreferrer">https://prnt.sc/k5qvvb</a>): with the arrow, it is the place where the user should have his name (here for example it's my account ^^), and in yellow the permissions he should have (putting others in "false" is obviously not required)</p>
  
  <p>I get no error, the console doesn't show anything abnormal... But the bot doesn't do what I want ^^</p>
  
  <p>Thanks for your help :)
  Oxzir</p>
  
  <p>PS : i'm french, so sorry if my english isn't sooo good ^^</p>