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); }
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)); }