title: dv8tion discord java channel permissions
body: <p>i have made a bot for discord using java, using net.dv8tion.jda to manage the bot.
  I have made that when a new user enters the bot will send a private message to him, the problem is that some users have disabled the option to reveive messages from bots or from not in friend list users.
  So my idea was to make it in a new way, when a new user joins the server the bot will create a new textchannel called for example "welcome", in that channel the <em>everyone</em> role doesn't have the permission to see the channel, but the new user has the permission to see it. In that case would be a private channel that will be deleted after for example the user reads the rules and selects a name by typing "!name example".</p>
  
  <p>My only problem is that i have done a lot of research, i did found how to modify permissions on specific roles using the bot, but i don't understand how to modify the permissions in the textchannels.</p>
  
  <p>I have managed to create a new channel:
  <code>event.getGuild().createTextChannel("welcome").complete();</code>
  and this creates a new textchannel named welcome.</p>
  
  <p>Whith some research i have seen 
  <code>event.getGuild().createTextChannel("welcome").complete().getManager().putPermissionOverride(permHolder, allow, deny);</code></p>
  
  <p>but still not sure what are the parameters, the "permHolder" is a IPermissionHolder interface, that has Member and Role subinterface, so i assume</p>
  
  <p><code>event.getGuild().createTextChannel("welcome").complete().getManager().putPermissionOverride(event.getMember(), allow, deny);</code> for modifying the new user permissions on that channel (the event is OnGuildMemberJoin)</p>
  
  <p>and</p>
  
  <p><code>event.getGuild().createTextChannel("welcome").complete().getManager().putPermissionOverride(event.getGuild().getRoleById(*everyone role id*), allow, deny);</code> for modifying the everyone role permission on that channel</p>
  
  <p><em>PS: yes i know in that way it will create 2 different channels named both "welcome", i should created first the channel, assign it to a variable and work on it after, but was just for understanding purpose here.</em></p>
  
  <p>But i still don't know what allow and deny parameters are, are they a list of the permissions that i want to be allowed and those that i want to be deny? On Eclypse they are shown as long types. And if yes, how do i calculate them?</p>
  
  <p>Sorry if what i have written may be confusing, and thank you in advance. </p>