Example #1
0
 public static Task SetChannelPermissions(this DiscordClient client, Channel channel, Role role, DualChannelPermissions permissions = null)
 {
     if (channel == null) throw new ArgumentNullException(nameof(channel));
     return channel.AddPermissionsRule(role, permissions);
 }
Example #2
0
 public static Task SetChannelPermissions(this DiscordClient client, Channel channel, Role role, DualChannelPermissions permissions = null)
 {
     if (channel == null)
     {
         throw new ArgumentNullException(nameof(channel));
     }
     return(channel.AddPermissionsRule(role, permissions));
 }